This method retrieves the starting and ending character positions of the current selection in an edit control, using either the return value or the parameters.
Header file: | Afxwin.h |
Platforms: | H/PC 2.0, Palm-size PC, H/PC Pro |
Windows CE versions: | 1.0 and later |
Complete documentation: | Visual C++ documentation |
DWORD GetSel( ) const;
void GetSel( int& nStartChar, int& nEndChar ) const;