CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 1999
    Posts
    23

    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


  2. #2
    Join Date
    Apr 1999
    Posts
    11

    Re: What message to post to quit app?

    dose DestroyWindow of Mainframe works out properly ??

    Mukthar

  3. #3
    Join Date
    May 1999
    Posts
    19

    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


  4. #4
    Join Date
    May 1999
    Posts
    6

    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
  •  





Click Here to Expand Forum to Full Width

Featured