The EM_EXSETSEL message selects a range of characters and/or OLE objects in a rich edit control.
EM_EXSETSEL
wParam = 0;
lParam = (LPARAM) (CHARRANGE FAR *) ichCharRange;
Returns the zero-based index of the line.
Windows NT: Requires version 3.51 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in richedit.h.
Rich Edit Controls Overview, Rich Edit Messages