LB_SETITEMHEIGHT (Compact 2013)

3/28/2014

This message is sent by an application to set the height, in pixels, of items in a list box. Otherwise, this message sets the height of all items in the list box.

Syntax

LB_SETITEMHEIGHT wParam = (WPARAM) index; 
    lParam = MAKELPARAM(cyItem, 0);

Parameters

  • index
    Zero-based index of the item in the list box. Use this parameter only if the list box has the LBS_OWNERDRAWVARIABLE style; otherwise, set it to zero.
  • cyItem
    Specifies the height, in pixels, of the item.

    Note

    In previous versions of Windows Embedded Compact, cyItemcould specify a maximum height of 255 pixels, but that limitation no longer exists.

Return Value

LB_ERR indicates that the index or height is invalid.

Remarks

The index parameter must be set to zero.

Requirements

Header

winuser.h

See Also

Reference

List Box Messages
LB_GETITEMHEIGHT