GetSel
Call this function to retrieve the bounds of the current selection.
void GetSel( int & nStartChar, int & nEndChar )
void
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); }
Edit::SetSel
Control.h