Jump to content

LM_SETITEMWIDTH

From EDM2

This message sets the width of the items in a list box.

Syntax

param1
ULONG lNewWidth; /* Width of items in list box. */

param2
ULONG reserved;  /* Reserved value, should be 0. */

Parameters

lNewWidth (ULONG) - input
Width of items in list box.
reserved (ULONG) - input
Reserved value, should be 0.

Returns

rc (BOOL) - return
Success indicator.
TRUE: Successful completion.
FALSE: Error occurred.

Remarks

The list box control window procedure responds to this message by setting the width of the items in a list box to that specified by lNewWidth.

Note: Only list boxes with the LS_HORZSCROLL style set will respond to this message.

This message does not send a WM_MEASUREITEM message.

Default Processing

The default window procedure does not expect to receive this message and therefore takes no action on it, other than to set rc to the default value of FALSE.