BCGSoft Professional Editor for MFC
void CBCGPEditCtrl::GetSel ( int &  nStartChar,
int &  nEndChar 
) const

Returns the current selection range.

Call this function to retrieve the current selection range. The returned values are zero-based offsets from the beginning of text. It will be -1 if there is no selection.

Parameters
nStartCharSelection start.
nEndCharSelection finish.