SetSel
Call this function to set the selection in the Edit control
void SetSel( int nStartChar, int nEndChar, BOOL bNoScroll = FALSE )
void
EX1
#include <Origin.h> #include <..\OriginLab\DialogEx.h> #define IDC_EDIT1 1001 void Edit_SetSel(Dialog& MyDlg) { Edit ed = MyDlg.GetItem(IDC_EDIT1); ed.SetSel(32000, 32000); // move to end of all text }
Edit::GetSel
Control.h