Question to exit app
C / C++ / MFC
3
Posts
3
Posters
0
Views
1
Watching
-
Hello all! I have a little problem in my project (VC++ 6.0). I want to show user a dialog box with question "exit app or not" when he tries to close application. Where shoult I write a handle to this event? Thank you! Dmitry Timin
-
I believe you can do this by overriding the default OnClose() method (WM_CLOSE message)in the main frame window of your application. Then call the
CFrameWnd::OnClose
() method if the user clicks "OK". - Anatari