ComboBox_SetItemHeight macro (windowsx.h)
Sets the height of list items or the selection field in a combo box. You can use this macro or send the CB_SETITEMHEIGHT message explicitly.
int ComboBox_SetItemHeight(
HWND hwndCtl,
int index,
int cyItem
);
hwndCtl
Type: HWND
A handle to the control.
index
Type: int
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.
cyItem
Type: int
The height in pixels.
Type: int
If the index or height is invalid, the return value is CB_ERR.
For more information, see CB_SETITEMHEIGHT.
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | windowsx.h |