CB_SETITEMHEIGHT
A version of this page is also available for
4/8/2010
This message is sent by an application to set the height of list items or the selection field in a combo box.
Syntax
CB_SETITEMHEIGHT wParam = (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 Value
CB_ERR indicates that the index or height is invalid.
Remarks
Windows Embedded 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
Header | winuser.h |
Windows Embedded CE | Windows CE 1.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |
See Also
Reference
Combo Boxes Messages
SendMessage
CB_GETITEMHEIGHT
WM_MEASUREITEM