Thursday, May 28, 2009

MFC - More dialogbox - Modal and Modeless

Summary from codersource.net

class MyTestDialog: public CDialog
{
}

Modal Dialogbox:
At the location where the dialog is intended
MyTestDialog dlg;
dlg.DoModal();

Modeless Dialogbox:
At the location where the dialog is intended
MyTestDialog *dlg;
dlg = new MyTestDialog;
dlg->Create(IDR_MYTESTDIALOG);
dlg->ShowWindow(SW_SHOW);

No comments: