Abubakar
2007-03-27 08:16:30 UTC
Hi,
I'm creating/showing-up a new dialog box in a vc++ 2k5 mfc application. If I
show my dialog using a DoModal():
FeedBackDlg feedback (IDD_FEEDBACKDLG);
INT_PTR ret = feedback.DoModal();
the OnInitDialog method of my dialog doest not get called. But on the other
hand if I creat my dialog using:
FeedBackDlg *one = new FeedBackDlg();
one->Create(IDD_FEEDBACKDLG, NULL);
one->ShowWindow(SW_NORMAL);
one->UpdateWindow();
the OnInitDialog method gets called. What can I do so that the OnInitDialog
method gets when I'm showing the dialog through domodal()?
Regards,
..ab
I'm creating/showing-up a new dialog box in a vc++ 2k5 mfc application. If I
show my dialog using a DoModal():
FeedBackDlg feedback (IDD_FEEDBACKDLG);
INT_PTR ret = feedback.DoModal();
the OnInitDialog method of my dialog doest not get called. But on the other
hand if I creat my dialog using:
FeedBackDlg *one = new FeedBackDlg();
one->Create(IDD_FEEDBACKDLG, NULL);
one->ShowWindow(SW_NORMAL);
one->UpdateWindow();
the OnInitDialog method gets called. What can I do so that the OnInitDialog
method gets when I'm showing the dialog through domodal()?
Regards,
..ab