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;
Parameters
ichCharRange
Zero-based index of the character.
Return Values
Returns the zero-based index of the line.