can we stop dialog from exiting when i click on red cross button?
-
hello, I have created a dialog based application.In the menu of parent dialog i am popping up another dialog.When i click on the Cancel button or the Cross red button of my dialog I get exited from complete application.i.e.the OnClose of CDialog gets called.I want only that pop up dialog to be closed and not complete apllication(i.e.the parent dialog on which my dialogis popping is also closed)How can i override the OnClose() and OnCancel()?of my dialog to stop this?
-
hello, I have created a dialog based application.In the menu of parent dialog i am popping up another dialog.When i click on the Cancel button or the Cross red button of my dialog I get exited from complete application.i.e.the OnClose of CDialog gets called.I want only that pop up dialog to be closed and not complete apllication(i.e.the parent dialog on which my dialogis popping is also closed)How can i override the OnClose() and OnCancel()?of my dialog to stop this?
In Visual Studio .NET you can add events by selecting the class in the class view and then going to the properties window and clicking on the messages view and then finding the message you want, in your case WM_CLOSE, and selecting On Close. In Visual Studio 6 you can add events by opening up a dialog from the resource view and then right clicking on it and going to Class Wizard or events. Something in that area.
-
hello, I have created a dialog based application.In the menu of parent dialog i am popping up another dialog.When i click on the Cancel button or the Cross red button of my dialog I get exited from complete application.i.e.the OnClose of CDialog gets called.I want only that pop up dialog to be closed and not complete apllication(i.e.the parent dialog on which my dialogis popping is also closed)How can i override the OnClose() and OnCancel()?of my dialog to stop this?