Re: WM_QUIT and WM_CLOSE
From: Scott McPhillips [MVP] (scottmcp_at_mvps.org.nothere)
Date: 05/15/04
- Next message: Daniel James: "Re: Visual C++ 6 support issue"
- Previous message: Su Wei: "How to prevent ole container hwnd receive certain messages?"
- In reply to: Yasoo: "WM_QUIT and WM_CLOSE"
- Next in thread: Yasoo: "Re: WM_QUIT and WM_CLOSE"
- Reply: Yasoo: "Re: WM_QUIT and WM_CLOSE"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 15 May 2004 12:06:42 -0500
Yasoo wrote:
> If WM_CLOSE is sent to the main window of an application, is that the same as WM_QUIT?
>
> Will a WM_QUIT result in sending a WM_CLOSE to the main window?
>
> Thank you.
No, they are very different. WM_QUIT terminates the message loop.
Obviously, it wouldn't make much sense to send a message after
terminating the message dispatcher. Use WM_CLOSE to close windows or
the application. WM_QUIT is taken care of by the framework.
-- Scott McPhillips [VC++ MVP]
- Next message: Daniel James: "Re: Visual C++ 6 support issue"
- Previous message: Su Wei: "How to prevent ole container hwnd receive certain messages?"
- In reply to: Yasoo: "WM_QUIT and WM_CLOSE"
- Next in thread: Yasoo: "Re: WM_QUIT and WM_CLOSE"
- Reply: Yasoo: "Re: WM_QUIT and WM_CLOSE"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|