Jump to content

EM QUERYSEL

From EDM2
Revision as of 01:56, 28 April 2025 by Martini (talk | contribs) (Created page with "This message gets the zero-based offsets of the bounds of the text that forms the current selection. ==Syntax== <pre> 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.: </pre> ==Parameters== ;ulReserved (ULONG) - input: Reserved value, sho...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.