CEdit::GetSel

Syntax

DWORD GetSel() const;

Remarks

Gets the starting and ending character positions of the current selection (if any) in an edit control.

Return Value

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.

See Also

CEdit::SetSel, EM_GETSEL