第二个问题把Number属性的值修改为false
第一个问题可以对第一个编辑框和第二个编辑框添加两个函数
OnChangEdit1()和OnChangEdit2()
在里面对其进行运算
void CShiyanDlg::OnChangeEdit1()
{
// TODO: If this is a RICHEDIT control, the control will not
// send this notification unless you override the CDialog::OnInitDialog()
// function and call CRichEditCtrl().SetEventMask()
// with the ENM_CHANGE flag ORed into the mask.
// TODO: Add your control notification handler code here
int end;
CString str;
this->UpdateData();
end=m_edit1+m_edit2;
str.Format("%16d",end);
str.TrimLeft();
CWnd* pWnd=this->GetDlgItem(IDC_EDIT3);
pWnd->SetWindowText(str);
}
就可以了