Win32: Handle all Windows messages, and ignore those with inappropriate HWNDs

This commit is contained in:
Elias Naur 2005-03-22 12:34:58 +00:00
parent c3733213c6
commit 67c4634992

View file

@ -240,13 +240,14 @@ void handleMessages(void)
MSG msg;
while (PeekMessage(
&msg, // message information
display_hwnd, // handle to window
NULL, // handle to window
0, // first message
0, // last message
PM_REMOVE // removal options
))
{
DispatchMessage(&msg);
if (display_hwnd != NULL && msg.hwnd == display_hwnd)
DispatchMessage(&msg);
};
}