【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.6.27.11 RichEdit::GetSelText
Contents
Description
Gets the text of the current selection in this RichEdit control
Syntax
string GetSelText( )
Parameters
Return
The string containing the current selection.
Examples
EX1
#include <..\OriginLab\DialogEx.h> #define IDC_RICHEDIT1 1001 void RichEdit_GetSelText(Dialog& EditBoxes) { RichEdit richEdit = EditBoxes.GetItem(IDC_RICHEDIT1); richEdit.SetSel(0, -1); string str = richEdit.GetSelText(); ASSERT( richEdit.Text == str ); }
Remark
See Also
Header to Include
Control.h