创建modeless对话框

来源:互联网 发布:网络贷款超市 编辑:程序博客网 时间:2024/05/18 14:43

void CTestDlgDlg::OnCreateWindow()
{
 // TODO: Add your control notification handler code here
 CMyDialog *pDialog = NULL;

 pDialog = new CMyDialog();

 pDialog->Create(IDD_DIALOG, this);

 if ( NULL != pDialog )
 {
  pDialog->ShowWindow(SW_SHOW);
 }
}