Four dialogs
-
Sorry for this, but I do have no experience in visual c++. I want to build an interface with four dialog windows. I know how to start the first dialog. But then, the main dialog has three buttons (A,B,C). When clicking on A, the main dialog window should be hidden an a new dialog window (WA) appears, after working wiht WA and click (RETURN TO MAIN) window WA disappears, and the main window appears. The same thing happens with buttons B and C. If somebody can give me a hand I will appreciate it. Thanks, Eric Manuel Rosales Pena Alfaro PhD student Unversity of Essex Wivenhoe Park Colchester, CO4 3SQ Essex, Uk email: emrosa@essex.ac.uk tel: +44-01206-87311
-
Sorry for this, but I do have no experience in visual c++. I want to build an interface with four dialog windows. I know how to start the first dialog. But then, the main dialog has three buttons (A,B,C). When clicking on A, the main dialog window should be hidden an a new dialog window (WA) appears, after working wiht WA and click (RETURN TO MAIN) window WA disappears, and the main window appears. The same thing happens with buttons B and C. If somebody can give me a hand I will appreciate it. Thanks, Eric Manuel Rosales Pena Alfaro PhD student Unversity of Essex Wivenhoe Park Colchester, CO4 3SQ Essex, Uk email: emrosa@essex.ac.uk tel: +44-01206-87311
When you press the button but before you show the new dialogbox call ShowWindow(SW_HIDE) and when the new dialogbox closes (returns control) then call ShowWindow(SW_SHOW). That should do it, but you may have to create the new dialogbox with a NULL parent window for it to work. Trust in the code Luke. Yea right!