CEdit::GetSel

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.

At a Glance

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

Syntax

DWORD GetSel( ) const;

void GetSel( int& nStartChar, int& nEndChar ) const;

See Also

CEdit::SetSel