CB_GETITEMHEIGHT

CB_GETITEMHEIGHT

wParam = (WPARAM) index; /* item index */

lParam = 0; /* not used, must be zero */

An application sends a CB_GETITEMHEIGHT message to determine the height of list items in a combo-box control.

Parameters

index

Value of wParam. Specifies the component of the combo box whose height is to be retrieved. If the index 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, index specifies the zero-based index of the list item whose height is to be retrieved. Otherwise, index should be set to zero.

Return Value

The return value is the height, in pixels, of the list items in a combo box. The return value is the height of the item specified by the index parameter if the combo box has the CBS_OWNERDRAWVARIABLE style. The return value is the height of the edit-control (or static-text) portion of the combo box if index is -1. The return value is CB_ERR if an error occurred.

See Also

CB_SETITEMHEIGHT, WM_MEASUREITEM