Windows Dev Center

ComboBox_SetItemHeight macro

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


int ComboBox_SetItemHeight(
   HWND hwndCtl,
   int  index,
   int  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

If the index or height is invalid, the return value is CB_ERR.

Remarks

For more information, see CB_SETITEMHEIGHT.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Windowsx.h

 

 

Community Additions

ADD
Show:
© 2015 Microsoft