CB_SETITEMHEIGHT (Windows CE 5.0)
This message is sent by an application to set the height of list items or the selection field in a combo box.
CB_SETITEMHEIGHTwParam = (WPARAM)index; lParam = (LPARAM)(int)height;
Parameters
index
Specifies the component of the combo box for which to set the height.This parameter must be –1 to set the height of the selection field. It must be zero to set the height of list items, unless the combo box has the CBS_OWNERDRAWVARIABLE style. In that case, the index parameter is the zero-based index of a specific list item.
height
Specifies the height, in pixels, of the combo box component identified by index.
Return Values
CB_ERR indicates that the index or height is invalid.
Remarks
Windows CE does not support owner-drawn combo boxes.
The selection field height in a combo box is set independently of the height of the list items. An application must ensure that the height of the selection field is not smaller than the height of a particular list item.
Requirements
OS Versions: Windows CE 1.0 and later.
Header: Winuser.h.
See Also
Combo Boxes Messages | SendMessage | CB_GETITEMHEIGHT | WM_MEASUREITEM
Send Feedback on this topic to the authors