Partager via


CB_SETITEMHEIGHT (Compact 2013)

3/28/2014

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

Syntax

CB_SETITEMHEIGHT
    wParam = (WPARAM)(int) iIndex;
  lParam = (LPARAM)(int) iHeight;

Parameters

  • iIndex
    Specifies the component of the combo box for which to set the height.

    This parameter must be set to -1 to specify the height of the selection field. It can be set to any other value to set the height of list items, unless the combo box has the CBS_OWNERDRAWVARIABLE style. If so, iIndex is the zero-based index of a specific list item.

  • iHeight
    Specifies the height, in pixels, of the combo box component identified by iIndex.

Return Value

CB_ERR indicates that the index or height is invalid.

Remarks

Windows Embedded Compact 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.

Requirements

Header

winuser.h

See Also

Reference

Combo Box Messages
SendMessage
CB_GETITEMHEIGHT
WM_MEASUREITEM