Feb 18, 2005 #1 panioti Programmer Jan 5, 2005 15 US What happens when operator clicks File->Exit, or hits the "X" button in upper-rt corner (whats the name of this X function). I want to do some cleanup before allowing exit to proceed. Is there a message that can be intercepted.
What happens when operator clicks File->Exit, or hits the "X" button in upper-rt corner (whats the name of this X function). I want to do some cleanup before allowing exit to proceed. Is there a message that can be intercepted.
Feb 18, 2005 #2 PerFnurt Programmer Feb 25, 2003 972 SE The are several places that might be used for cleanup. Which is the most suitable depends on you application, and the scope of the clean-up. If it's a doc-view, then it could be in the document's DeleteContents method, or destructor. Or in the view's OnDestroy or destructor. It could be in the CWinApp's ExitInstance, or destructor. /Per [sub] www.perfnurt.se[/sub] Upvote 0 Downvote
The are several places that might be used for cleanup. Which is the most suitable depends on you application, and the scope of the clean-up. If it's a doc-view, then it could be in the document's DeleteContents method, or destructor. Or in the view's OnDestroy or destructor. It could be in the CWinApp's ExitInstance, or destructor. /Per [sub] www.perfnurt.se[/sub]
Feb 18, 2005 #3 WilliamGS Programmer Jan 21, 2004 54 PE I am not sure, but try it with WM_DESTROY message. William GS Upvote 0 Downvote
Feb 20, 2005 Thread starter #4 panioti Programmer Jan 5, 2005 15 US CWinApp ExitInstance is what I was looking for, thanks. Upvote 0 Downvote