Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
A version of this page is also available for
4/8/2010
This message retrieves the starting and ending character positions of the current selection in an edit control.
Syntax
EM_GETSEL wParam = (WPARAM)(LPDWORD) lpdwStart; lParam = (WPARAM)(LPDWORD) lpdwEnd; |
Parameters
- lpdwStart
-
Long pointer to a 32-bit value that receives the starting position of the selection. This parameter can be NULL.
- lpdwEnd
-
Long pointer 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 Value
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.
Requirements
Header | windows.h |
Windows Embedded CE | Windows CE 1.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |