Fixed windows event handling for ActiveX controls (thanks Huib-Jan!)
authorSam Lantinga <slouken@libsdl.org>
Tue, 08 Oct 2002 16:25:23 +0000
changeset 523c210010f50f4
parent 522 6b3998ddee6d
child 524 1b8ea19e9ee4
Fixed windows event handling for ActiveX controls (thanks Huib-Jan!)
src/video/windib/SDL_dibevents.c
src/video/windx5/SDL_dx5events.c
     1.1 --- a/src/video/windib/SDL_dibevents.c	Tue Oct 08 15:48:21 2002 +0000
     1.2 +++ b/src/video/windib/SDL_dibevents.c	Tue Oct 08 16:25:23 2002 +0000
     1.3 @@ -172,8 +172,8 @@
     1.4  {
     1.5  	MSG msg;
     1.6  
     1.7 -	while ( PeekMessage(&msg, NULL, 0, (WM_APP-1), PM_NOREMOVE) ) {
     1.8 -		if ( GetMessage(&msg, NULL, 0, (WM_APP-1)) > 0 ) {
     1.9 +	while ( PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE) ) {
    1.10 +		if ( GetMessage(&msg, NULL, 0, 0) > 0 ) {
    1.11  			DispatchMessage(&msg);
    1.12  		}
    1.13  	}
     2.1 --- a/src/video/windx5/SDL_dx5events.c	Tue Oct 08 15:48:21 2002 +0000
     2.2 +++ b/src/video/windx5/SDL_dx5events.c	Tue Oct 08 16:25:23 2002 +0000
     2.3 @@ -538,8 +538,8 @@
     2.4  	/* Check the normal windows queue (highest preference) */
     2.5  	posted = 0;
     2.6  	while ( ! posted &&
     2.7 -	        PeekMessage(&msg, NULL, 0, (WM_APP-1), PM_NOREMOVE) ) {
     2.8 -		if ( GetMessage(&msg, NULL, 0, (WM_APP-1)) > 0 ) {
     2.9 +	        PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE) ) {
    2.10 +		if ( GetMessage(&msg, NULL, 0, 0) > 0 ) {
    2.11  			DispatchMessage(&msg);
    2.12  		} else {
    2.13  			return(-1);