Click to See Complete Forum and Search --> : What message to post to quit app?
Orion Mazzor
May 3rd, 1999, 04:36 PM
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
Sheik Mukthar
May 4th, 1999, 04:52 AM
dose DestroyWindow of Mainframe works out properly ??
Mukthar
Ashley Antony
May 4th, 1999, 05:24 AM
Did you try to post WM_CLOSE to the main window.
AfxGetMainWnd()->PostMessage(WM_CLOSE, 0, 0);
Ashley.Antony@in.bosch.com
Bangalore
Art
May 4th, 1999, 06:33 AM
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
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.