void CTestDialog::OnBnClickedBtnAdd(){ // TODO: 在此添加控件通知处理程序代码 int num1 = 0; int num2 = 0; int num3 = 0; WCHAR ch1[10] = { }; WCHAR ch2[10] = { }; WCHAR ch3[10] = { }; GetDlgItem(IDC_EDIT1)->GetWindowText(ch1,10); GetDlgItem(IDC_EDIT1)->GetWindowText(ch2,10); num1 = atoi((const char*)ch1); num2 = atoi((const char*)ch2); num3 = num1 + num2; _itoa_s(num3, (char*)ch3, 10,10); GetDlgItem(IDC_EDIT3)->SetWindowText(ch3);}
30秒到达战场
相关分类