DWORD GetSel() const;
Gets the starting and ending character positions of the current selection (if any) in an edit control.
A 32-bit value that contains the starting position in the low-order word and the position of the first nonselected character after the end of the selection in the high-order word.
CEdit::SetSel, EM_GETSEL