直接使用GetDlgItemInt()  

CString strNum;
 m_LogDlg.GetDlgItem(IDC_DAYEDIT)->GetWindowText(strNum);
 strNum.Replace(_T(","), _T(""));
 m_MainSetting.m_dwM = _ttoi(strNum.GetBuffer(0));
 strNum.ReleaseBuffer();

posted on 2011-09-03 14:44  一个人的天空@  阅读(1984)  评论(0编辑  收藏  举报