Commit e97f13eb authored by Sam Lantinga's avatar Sam Lantinga

Fixed windows event handling for ActiveX controls (thanks Huib-Jan!)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40524
parent 798b6018
...@@ -172,8 +172,8 @@ void DIB_PumpEvents(_THIS) ...@@ -172,8 +172,8 @@ void DIB_PumpEvents(_THIS)
{ {
MSG msg; MSG msg;
while ( PeekMessage(&msg, NULL, 0, (WM_APP-1), PM_NOREMOVE) ) { while ( PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE) ) {
if ( GetMessage(&msg, NULL, 0, (WM_APP-1)) > 0 ) { if ( GetMessage(&msg, NULL, 0, 0) > 0 ) {
DispatchMessage(&msg); DispatchMessage(&msg);
} }
} }
......
...@@ -538,8 +538,8 @@ static int DX5_CheckInput(_THIS, int timeout, BOOL processInput) ...@@ -538,8 +538,8 @@ static int DX5_CheckInput(_THIS, int timeout, BOOL processInput)
/* Check the normal windows queue (highest preference) */ /* Check the normal windows queue (highest preference) */
posted = 0; posted = 0;
while ( ! posted && while ( ! posted &&
PeekMessage(&msg, NULL, 0, (WM_APP-1), PM_NOREMOVE) ) { PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE) ) {
if ( GetMessage(&msg, NULL, 0, (WM_APP-1)) > 0 ) { if ( GetMessage(&msg, NULL, 0, 0) > 0 ) {
DispatchMessage(&msg); DispatchMessage(&msg);
} else { } else {
return(-1); return(-1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment