EM QUERYSEL
Appearance
This message gets the zero-based offsets of the bounds of the text that forms the current selection.
Syntax
param1 ULONG ulReserved; /* Reserved value, should be 0. */ param2 ULONG ulReserved; /* Reserved value, should be 0. */ returns SHORT sMinSel; /* Offset of the first character in the selection. */ SHORT sMaxSel; /* Offset of the first character after the selection. */
Parameters
- ulReserved (ULONG) - input
- Reserved value, should be 0.
- ulReserved (ULONG) - input
- Reserved value, should be 0.
Returns
- sMinSel (SHORT) - return
- Offset of the first character in the selection.
- sMaxSel (SHORT) - return
- Offset of the first character after the selection.
Remarks
The entry field control window procedure responds to this message by returning the zero-based offsets of the bounds of the text that forms the current selection.
Default Processing
The default window procedure does not expect to receive this message and therefore takes no action on it, other than to set sMinSel to the default value of 0, which is equivalent to setting both sMinSel and sMaxSel to 0.