Share via


LB_SETITEMHEIGHT

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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 CE, cyItem could 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
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

LB_GETITEMHEIGHT
List Boxes Messages