一、模態對話框this
CTipDlg tipDlg;
INT_PTR nResponse = tipDlg.DoModal();
if(nResponse == IDCANCEL)
{
return;
}ip
UpdateData(TRUE);
m_editsum = m_editAddend+m_editSummand;
UpdateData(FALSE);it
二、非模態對話框date
#include "TipDlg.h"di
CTipDlg *m_pTipDlg;new
m_pTipDlg = new CTipDlg();
m_pTipDlg->Create(IDD_TIP_DIALOG,this);
m_pTipDlg->ShowWindow(SW_SHOW);
return