描述
设置列表框中项目的高度(以像素为单位).如果列表框具有LBS_OWNERDRAWVARIABLE风格,这一消息集高度的nHeight参数指定的项目.否则,此消息将设置列表框中所有项的高度.您可以使用此功能或发送LB_SETITEMHEIGHT消息明确.
FreeBASIC 语法
#define ListBox_SetItemHeight(hwndCtl, index, cy) |
参数
hListBox |
[in]处理ListBox控件. |
index |
[in]指定的项的从零开始的索引列表框中.如果列表框中有LBS_OWNERDRAWVARIABLE方式使用此参数;否则,将它设置为零.
Microsoft Windows 95/Windows 98/Windows Millennium Edition (Windows Me): The wParam 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. |
nHeight |
[in]指定的高度,以像素为单位的项目. |
返回值
如果指数或高度无效,返回值是LB_ERR.
引用文件
WindowsX.bi