Jump to content

WM SETSELECTION

From EDM2
Revision as of 04:19, 18 April 2025 by Martini (talk | contribs) (Created page with "This message occurs when a window is selected or deselected. ==Syntax== <pre> param1 USHORT usselection; Selection flag.: param2 ULONG ulReserved; Reserved value, should be 0.: </pre> ==Parameters== ;''usselection'' (USHORT) - input: Selection flag. :TRUE: The window is selected. :FALSE: The window is deselected. ;''ulReserved'' (ULONG) - input: Reserved value, should be 0. ==Returns== ;''ulReserved'' (ULONG) - returns: Reserved value, should...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message occurs when a window is selected or deselected.

Syntax

param1
    USHORT usselection; /* Selection flag. */

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

Parameters

usselection (USHORT) - input
Selection flag.
TRUE: The window is selected.
FALSE: The window is deselected.
ulReserved (ULONG) - input
Reserved value, should be 0.

Returns

ulReserved (ULONG) - returns
Reserved value, should be 0.

Remarks

The window procedure is expected to highlight or unhighlight the selected item of the window, as appropriate.

This message is sent to a window when it loses the focus to another window that it does not own. It allows an application to remove the selection when the focus is removed to another application, but to keep it if, for example, the same application displays a dialog box.

Default Processing

The default window procedure takes no action on this message, other than to set ulReserved to 0.