Jump to content
  • Advertisement

Archived

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

Ziyx

PeekMessage - Win32 VC++ 6.0

This topic is 6295 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!