CComboBox::GetItemHeight

int GetItemHeight( int nIndex ) const;

Return Value

The height, in pixels, of the specified item in a combo box. The return value is CB_ERR if an error occurs.

Parameters

nIndex

Specifies the component of the combo box whose height is to be retrieved. If the nIndex parameter is –1, the height of the edit-control (or static-text) portion of the combo box is retrieved. If the combo box has the CBS_OWNERDRAWVARIABLE style, nIndex specifies the zero-based index of the list item whose height is to be retrieved. Otherwise, nIndex should be set to 0.

Remarks

Call the GetItemHeight member function to retrieve the height of list items in a combo box.

CComboBox OverviewClass MembersHierarchy Chart

See Also   CComboBox::SetItemHeight, WM_MEASUREITEM, CB_GETITEMHEIGHT