PeekMessage - Win32 VC++ 6.0

Started by
2 comments, last by Ziyx 22 years, 9 months ago
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
Advertisement
My guess will be that the QM_QUIT is posted to the thread and not to a window.
-- Gilad
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
Steve 'Sly' Williams  Monkey Wrangler  Krome Studios
turbo game development with Borland compilers
Thanks for the info

This topic is closed to new replies.

Advertisement