CDialog::OnInitDialog called ? Erroneosly
-
Hi I have a modal dialog box from which I ask the user for some questions I save the answers for those question in the ABOUT to be created modeless dialog box After I allocate it on the heap (and of course drive the constructer) The modal dialog box is created and destroyed (via EndDialog) from a OnCommand routine from my MainFrame I have run this code a number of times and only when I do the Create for my modeless Dialog does the OnInitDialog get executed Now all of sudden when I finish the processing for my modal dialog box and do a return From my MainFrame OnCommand routine does it get called I looked at my Call Stack window and it was in AfxDlogProc in Respone to a WM_INITDIALOG, My questions shouldn't all this be happening when I do the Create Thanks