#include "stdafx.h" #include "FormatMsgDlg.h" namespace SOUI { CFormatMsgDlg::CFormatMsgDlg(void):SHostDialog(_T("layout:dlg_formatmsg")) { m_nRepeat=1; } CFormatMsgDlg::~CFormatMsgDlg(void) { } void CFormatMsgDlg::OnOK() { SRichEdit *pEdit = FindChildByName2(L"re_xmlinput"); m_strMsg = pEdit->GetWindowText(); SEdit *pRepeat = FindChildByName2(L"edit_repeat"); SStringT strRepeat = pRepeat->GetWindowText(); m_nRepeat = _tstoi(strRepeat); EndDialog(IDOK); } }