CB_SETITEMHEIGHT

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

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.

Requirements

Runs On Versions Defined in Include Link to
Windows CE OS 1.0 and later Winuser.h    

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

CB_GETITEMHEIGHT, WM_MEASUREITEM

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.