EM_EXGETSEL

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.

QuickInfo

  Windows NT: Requires version 3.51 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in richedit.h.

See Also

Rich Edit Controls Overview, Rich Edit Messages, CHARRANGE