描述
确保列表框中的特定项是可见的.您可以使用此功能或发送LB_SETTOPINDEX消息明确.
FreeBASIC 语法
#define ListBox_SetTopIndex(hwndCtl, indexTop) |
参数
hListBox |
[in]处理ListBox控件. |
indexTop |
[in]指定的项的从零开始的索引列表框中.
Microsoft Windows 95/Windows 98/Windows Millennium Edition (Windows Me): The index parameter is limited to 16-bit values. This means list boxes cannot contain more than 32,767 items. Although the number of items is restricted, the total size in bytes of the items in a list box is limited only by available memory. |
返回值
如果发生错误,返回值是LB_ERR.
备注
系统滚动列表框内容,以使指定的项目出现在列表框的顶部或已达到最大滚动范围.
引用文件
WindowsX.bi