WM SETSELECTION
Appearance
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.