void CWwDlg::OnButton1() { // TODO: Add your control notification handler code here m_A = 0; m_B = 0; int i=m_A*m_B; m_Result.Format("%d", i); UpdateData(FALSE); }