The EM_EXGETSEL message retrieves the starting and ending character positions of the selection in a rich edit control.
EM_EXGETSEL
wParam = 0;
lParam = (LPARAM) (CHARRANGE FAR *) lpchr;
Parameters
lpchr
Pointer to a CHARRANGE structure that receives the selection range.
Return Values
No return value.
See Also