void CFormatMsgDlg::OnOK() { SRichEdit *pEdit = FindChildByName2<SRichEdit>(L"re_xmlinput"); m_strMsg = pEdit->GetWindowText(); SEdit *pRepeat = FindChildByName2<SEdit>(L"edit_repeat"); SStringT strRepeat = pRepeat->GetWindowText(); m_nRepeat = _tstoi(strRepeat); EndDialog(IDOK); }
void CFormatMsgDlg::OnOK() { SRichEdit* pEdit = FindChildByName2<SRichEdit>( L"re_xmlinput" ); m_strMsg = pEdit->GetWindowText(); EndDialog( IDOK ); }