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.
Syntax
void ComboBox_SetItemHeight(
hwndCtl,
index,
cyItem
);
Parameters
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.
Return value
None
Remarks
For more information, see CB_SETITEMHEIGHT.
Requirements
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 |