#include "dialog1.h" //dialog1 dlg;//非模态对话框 //dlg.DoModal(); dialog1*pDlg=new dialog1();//模态对话框 pDlg->Create(IDD_DIALOG1,this); pDlg->ShowWindow(SW_SHOW);