模态对话框与非模态的显示

来源:互联网 发布:2017淘宝店铺注销 编辑:程序博客网 时间:2024/06/10 02:55

DoModal() ---------------------  模态对话框

 

 // TODO: Add your control notification handler code here
 CMyDialog *pDialog = NULL;

 pDialog = new CMyDialog();

 if ( NULL != pDialog )
 {
  pDialog->Create(IDD_DIALOG, this);
  pDialog->ShowWindow(SW_SHOW);
 }

 

---------------------------------- 非模态对话框