GetSelText
Gets the text of the current selection in this RichEdit control
string GetSelText( )
The string containing the current selection.
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 ); }
Control.h