This message is sent by an application to set the height, in pixels, of items in a list box. Otherwise, this message sets the height of all items in the list box.
At a Glance
Header file: | Winuser.h |
Windows CE versions: | 1.0 and later |
Syntax
LB_SETITEMHEIGHT wParam = (WPARAM) index;
lParam = MAKELPARAM(cyItem, 0);
Parameters
index
Zero-based index of the item in the list box. Use this parameter only if the list box has the LBS_OWNERDRAWVARIABLE style; otherwise, set it to zero.
Windows 95 and Windows 98: 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.
cyItem
Specifies the height, in pixels, of the item.
Return Values
LB_ERR indicates that the index or height is invalid.
Remarks
The index parameter must be set to zero.
See Also