Advertisement

PeekMessage - Win32 VC++ 6.0

Started by July 25, 2001 12:12 AM
2 comments, last by Ziyx 23 years, 6 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
My guess will be that the QM_QUIT is posted to the thread and not to a window.
-- Gilad
Advertisement
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