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