Jump to content

LM SETITEMWIDTH: Difference between revisions

From EDM2
Created page with "{{DISPLAYTITLE:LM_SETITEMWIDTH}} This message sets the width of the items in a list box. ==Syntax== <pre> param1 ULONG lNewWidth; Width of items in list box.: param2 ULONG reserved; Reserved value, should be 0.: </pre> ==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 occu..."
 
(No difference)

Latest revision as of 02:22, 28 April 2025

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.