![]() |
|
#1
|
|||
|
|||
Need a help on Multiple Dialog Application...Hi All
,This is Anjaneya Prasad. I am very new to Visual C++ 6.0. I am trying to develop an application which may have two Modal dialogs. One DoModalling the other. I tried to overwrite the virtual function OnOK and OnCancel in the second Dialog. Unfortunately the second Dialog is not yet all closing, and no event is occuring in the second dialog(Even the mouse event events also) Do i need to do more than i did? If i wish to DoModal the Third Dialog from the Second Dialog, how can i do that? Can any one help me in this regard? Here i am attaching my code. Thanks and Regards, |
|
#2
|
||||
|
||||
Re: Need a help on Multiple Dialog Application...You are close, but the concept is a little off...
Within the SputnikInterface01Dlg.cpp file is this event handler when the configure button is clicked: CPP / C++ / C Code:
Your custom configure class already inherits from CDialog, as shown by the class declaration: [in configureDlg.h] CPP / C++ / C Code:
CPP / C++ / C Code:
1. The header file for the CconfigureDlg class needs to be added to the SputnikInterface01Dlg.cpp file. 2. In file configureDlg.cpp, keep the CDialog::OnOK() and CDialog::OnCancel() functions enabled, as these are needed for the inherited CDialog class. 3. If the OnClickedCancel(), and OnClickedOk() are extra's (assuming these were created trying to debug the problem) they can probably be eliminated. __________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
Recent GIDBlog
US Elections and the ?Voter?s Responsibility? by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Creating Multiple Dialog Frames in a single MFC Application | manmfc | MS Visual C++ / MFC Forum | 7 | 05-Mar-2008 23:26 |
| Traversing multiple dialog boxes | Chronocide | MS Visual C++ / MFC Forum | 0 | 05-Sep-2006 00:27 |
| dialog based application | hezyse | MS Visual C++ / MFC Forum | 1 | 20-Mar-2005 19:16 |
| Help! Some basal questions about MFC | xutingnjupt | MS Visual C++ / MFC Forum | 1 | 05-Dec-2004 04:38 |
| controling dialog objects & multiple source files | omills | MS Visual C++ / MFC Forum | 0 | 15-Jul-2004 00:30 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The