Jump to content

LM SELECTITEM

From EDM2

This message is used to set the selection state of an item in a list box.

Syntax

param1
SHORT sItemIndex;   /* Index of the item to be selected or deselected. */

param2
USHORT usselect;     /* Select flag. */

Parameters

sItemIndex (SHORT) - Input
Index of the item to be selected or deselected:
LIT_NONE: All items are to be deselected.
Other: Index of the item to be selected or deselected.
usselect (USHORT) - Input
Select flag (ignored if sItemIndex is set to LIT_NONE).
TRUE: The item is selected. If the control is a single selection list box (that is, it does not have the style of LS_MULTIPLESEL), any previously selected item is deselected.
FALSE: The item is deselected.

Returns

rc (BOOL) - returns
Success indicator.
TRUE: Successful completion.
FALSE: Error occurred. For example, when the item does not exist in the list box, or when an item that is not selected is deselected.

Remarks

The list box control window procedure responds to this message by setting the selection state, as indicated by usselect, of the item whose index is specified in sItemIndex.

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.