PeekMessage - Win32 VC++ 6.0
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
-- 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 Code Monkey Krome Studios
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement