【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.6.13.3 Edit::GetSel
Contents
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
Header to Include
Control.h