Call this member function to retrieve the starting and ending character positions of the current selection in an edit control, using either the return value or the parameters.
DWORD GetSel( ) const;
void GetSel( int& nStartChar, int& nEndChar ) const;
| Header File | Afxwin.h |
| Platforms | |
| Versions | 1.0 and later |
| Complete documentation | Visual C++ documentation |
CEdit Overview, CEdit Member Functions, Control Classes, CEdit::SetSel