|
-
May 3rd, 1999, 04:36 PM
#1
What message to post to quit app?
I can't for the life of me remember what message you need to post to force an MFC application to exit. POstQuitMessage won't do, because the destructors for your doc/view stuff don't get called properly.
Orion
-
May 4th, 1999, 04:52 AM
#2
Re: What message to post to quit app?
dose DestroyWindow of Mainframe works out properly ??
Mukthar
-
May 4th, 1999, 05:24 AM
#3
Re: What message to post to quit app?
Did you try to post WM_CLOSE to the main window.
AfxGetMainWnd()->PostMessage(WM_CLOSE, 0, 0);
[email protected]
Bangalore
-
May 4th, 1999, 06:33 AM
#4
Re: What message to post to quit app?
Hi......
Try PostMessage one of
WM_DESTROY, or, WM_QUIT.
or simply call ExitThread, or to force destroy any Win thread TerminateThread.
or to exit any process ExitProcess, or to force kill any Win APP TerminateProcess.
Good Luck.
Art
AAvetyan
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
|