Application Exit function
C / C++ / MFC
3
Posts
2
Posters
0
Views
1
Watching
-
I to all. I've a little problem on trying to intercept the WM_QUIT message on an MFC based application. I want to display a message on user which allow select to exit application or not. I'm not using Document/View architecture so I don't need to mark any document to dirty. Thanks to anyone.
-
I to all. I've a little problem on trying to intercept the WM_QUIT message on an MFC based application. I want to display a message on user which allow select to exit application or not. I'm not using Document/View architecture so I don't need to mark any document to dirty. Thanks to anyone.
-
Try to put this code in OnAppExit of your CMainFrame class if (AfxMessageBox("Do you really want to exit?",MB_YESNO) == IDYES) { CMainFrame::OnClose(); } Lio.