|
-
May 13th, 1999, 03:54 AM
#1
Capturing windows exit
I'm trying to put a check into the exit routine for my application. I've trapped the ID_APP_EXIT command for 'File Exit' from the menu, but I'm unable to capture either ALT F4 or either of the application title bar exit buttons.
Can anyone help, as I can't trust the users to close the application using File Exit every time!
Carnegie
-
May 13th, 1999, 04:51 AM
#2
Re: Capturing windows exit
Trap the WM_QUIT message and do what you need before passing it on.
-
May 13th, 1999, 05:15 AM
#3
Re: Capturing windows exit
Yeah - that's what I thought.
It doesn't seem to work!
Should I be capturing on the CWinApp or on the CMDIMainFrame - or somewhere else entirely?
-
May 13th, 1999, 07:49 AM
#4
Re: Capturing windows exit
Maybe try to catch WM_CLOSE on the main window?
-
May 13th, 1999, 08:04 AM
#5
Re: Capturing windows exit
Yeah - I got it to work by capturing WM_CLOSE on the Main Frame
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|