|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| Yes
| Import Library
| -
| Header File
| winuser.h
| Unicode
| No
| Platform Notes
| None
|
|
|
EM_GETSEL
An application sends an EM_GETSEL message to get the starting and ending
character positions of the current selection in an edit control.
EM_GETSEL
wParam = (WPARAM) (LPDWORD) lpdwStart; // receives starting position
lParam = (LPARAM) (LPDWORD) lpdwEnd; // receives ending position
Parameters
lpdwStart
Value of
wParam. Points to a 32-bit value that receives the starting position of the
selection. This parameter can be NULL.
lpdwEnd
Value of
lParam. Points to a 32-bit value that receives the position of the first nonselected
character after the end of the selection. This parameter can be NULL.
Return Values
The return value is a zero-based 32-bit value with the starting position of
the selection in the low-order word and the position of the first character after
the last selected character in the high-order word. If either of these values
exceeds 65, 535, the return value is -1.
Remarks
In a rich edit control, if the selection is not entirely contained in the
first 64K, use the message EM_EXGETSEL.
See Also
EM_EXGETSEL,
EM_SETSEL
- Software for developers
-
Delphi Components
.Net Components
Software for Android Developers
- More information resources
-
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
- Databases for Amazon shops developers
-
Amazon Categories Database
Browse Nodes Database