Solved

ID_APP_EXIT

Posted on 2004-03-26
2
431 Views
Last Modified: 2013-11-20
Where does the command start executing?
How can I catch it BEFORE anything happened?
0
Comment
Question by:jd9288
  • 2
2 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 250 total points
ID: 10689858
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
 
LVL 86

Expert Comment

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

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Powershell based monitoring system 2 127
How to know only "File created" with EventLog 3 29
wordcount challenge 11 78
Path of Workbook 3 45
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now