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);
}
}
本文介绍了一个使用C++创建对话框的具体示例。通过实例代码展示了如何新建并显示一个对话框,包括创建对话框对象、初始化及显示窗口的过程。
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);
}
}
5315
944

被折叠的 条评论
为什么被折叠?