Click to See Complete Forum and Search --> : Puzzled - where is my dialog box?


jim enright
June 16th, 2006, 05:18 PM
am using vc++.net

have a dialog based mfc application - nothing to do with internet.

added an additional dialog box class, CDLg00, to make a child dialog.

add this to ProjectDlg.h file:

CDlg00 Tab00;

add this to ProjectDlg.cpp file:

Tab00.Create(IDD_DLG00,this);
Tab00.MoveWindow(100,100100,00;

the program compiles and executes without a problem but it never
displays the child dialog. Appreciate insight on what I am missing.

thanks - j

darwen
June 16th, 2006, 09:37 PM
Try


Tab00.Create(IDD_DLG00,this);
Tab00.ShowWindow(SW_SHOW);
Tab00.MoveWindow(100,100100,00;


This isn't really a .NET question - but never mind.

Darwen.

jim enright
June 21st, 2006, 11:35 AM
thanks - my bad. it seems that the default settings for
added dialog box controls have the visible proerty set to
FALSE.

thanks for the help.