• Advertisement

Archived

This topic is now archived and is closed to further replies.

PeekMessage - Win32 VC++ 6.0

This topic is 6024 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Anybody knows why when i''m using PeekMessage(&msg, hWnd, 0, 0, PM_REMOVE) for the message loop, msg.message will not be WM_QUIT but when using NULL in place of hWnd: PeekMessage(&msg, NULL, 0, 0, PM_REMOVE) msg.message can be of value WM_QUIT

Share this post


Link to post
Share on other sites
Advertisement
My guess will be that the QM_QUIT is posted to the thread and not to a window.
-- Gilad

Share this post


Link to post
Share on other sites
A value of NULL specifies that PeekMessage will check the message queue for all windows and threads owned by the process. The WM_QUIT message was probably sent to a different window.

Steve ''Sly'' Williams  Code Monkey  Krome Studios

Share this post


Link to post
Share on other sites

  • Advertisement