[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 475
  • Last Modified:

ID_APP_EXIT

Where does the command start executing?
How can I catch it BEFORE anything happened?
0
jd9288
Asked:
jd9288
  • 2
1 Solution
 
jkrCommented:
See MFC TN22:

ID_APP_EXIT:   Exit the application.
CWinApp::OnAppExit handles this command by sending a WM_CLOSE message to the application's main window. The standard shutting down of the application (prompting for dirty files and so on) is handled by the CFrameWnd implementation.

Customization of this command handler is not recommended. Overriding CWinApp::SaveAllModified or the CFrameWnd closing logic is recommended.

If you choose to implement this command, we recommend you use this command ID.

0
 
jkrCommented:
Ooops, forgot the link: http://msdn.microsoft.com/library/en-us/vclib/html/_mfcnotes_tn022.asp ("TN022: Standard Commands Implementation")
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now