CB_SETITEMHEIGHT

This message is sent by an application to set the height of list items or the selection field in a combo box.

At a Glance

Header file: Winuser.h
Windows CE versions: 1.0 and later

Syntax

CB_SETITEMHEIGHT wParam = (WPARAM) index;
lParam = (LPARAM)(int) height;

Parameters

index

Specifies 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.

height

Specifies the height, in pixels, of the combo box component identified by index.

Return Values

CB_ERR indicates that the index or height is invalid.

Remarks

Windows CE does not support owner drawn combo boxes.

The selection field height in a combo box is set independently of the height of the list items. An application must ensure that the height of the selection field is not smaller than the height of a particular list item.

See Also

CB_GETITEMHEIGHT, WM_MEASUREITEM