I have written the below code to create a modaless dialog.what to do to view the dialog?it just blinks and goes away...
combodlg cd= new combodlg(this);
cd.Create(IDD_DIALOG1, this);
cd.ShowWindow(SW_SHOW);
I have written the below code to create a modaless dialog.what to do to view the dialog?it just blinks and goes away...
combodlg cd= new combodlg(this);
cd.Create(IDD_DIALOG1, this);
cd.ShowWindow(SW_SHOW);
I have written the below code to create a modaless dialog.what to do to view the dialog?it just blinks and goes away...
combodlg cd= new combodlg(this); cd.Create(IDD_DIALOG1, this); cd.ShowWindow(SW_SHOW);
The constructor of the dialog can be like
combodlg::combodlg(CWnd* pParent /*=NULL*/)
{
VERIFY(Create(IDD_DIALOG1, pParent));
}
and to use the dialog ...
combodlg * pcd = new combodlg(this);
pcd->ShowWindow(SW_SHOW);
and lastly, override PostNcDestroy() ..
void combodlg::PostNcDestroy()
{
CDialog::PostNcDestroy();
delete this;
}
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.