Edit::GetSel

Description

Call this function to retrieve the bounds of the current selection.

Syntax

void GetSel( int & nStartChar, int & nEndChar )

Parameters

nStartChar
Zero-based index of the first character in the current selection.
nEndChar
Zero-based index of the last character in the current selection.

Return

void

Examples

EX1

#include <Origin.h>
#include <..\OriginLab\DialogEx.h>

#define IDC_EDIT1 1001
void Edit_GetSel(Dialog& MyDlg)
{
        Edit ed = MyDlg.GetItem(IDC_EDIT1);
        long nStartChar, nEndChar;
        ed.GetSel(nStartChar, nEndChar);
}

Remark

See Also

Edit::SetSel

header to Include

Control.h