描述
套在与LBS_NODATA风格创建的列表框与LBS_HASSTRINGS风格不创建的项目数.您可以使用此功能或发送LB_SETCOUNT消息明确
FreeBASIC 语法
FUNCTION ListBox_SetCount ( _ BYVAL hListBox AS HWND, _ BYVAL nCount AS DWORD _ ) AS LONG |
参数
hListBox |
[in]处理ListBox控件. |
nCount |
[in]指定列表框中的项新计数.
Microsoft Windows 95/Windows 98/Windows Millennium Edition (Windows Me): The nCount 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.如果没有足够的内存来存储物品,返回值是LB_ERRSPACE.
备注
的LB_SETCOUNT消息只支持通过列表框创建的LBS_NODATA风格与LBS_HASSTRINGS风格没有创造.所有其他列表框返回LB_ERR.
引用文件
AfxCtl.inc


