LB_SETITEMHEIGHT

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.

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. The maximum height for an item is 255 pixels.

Return Values

LB_ERR indicates that the index or height is invalid.

Remarks

The index parameter must be set to zero.

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

LB_GETITEMHEIGHT

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.