When a popupmenu is currently active on the screen, it shouldn't

remove mouse click messages that don't belong to it from the queue.
This commit is contained in:
Karl Lessard 1999-11-07 05:17:10 +00:00 committed by Alexandre Julliard
parent 7cc0e274f4
commit 4a0a7df6a3
1 changed files with 4 additions and 1 deletions

View File

@ -2636,7 +2636,10 @@ static INT MENU_TrackMenu( HMENU hmenu, UINT wFlags, INT x, INT y,
/* fall through */
case WM_LBUTTONDBLCLK:
case WM_LBUTTONDOWN:
fRemove = fEndMenu = !MENU_ButtonDown( &mt, hmenu, wFlags );
/* If the message belongs to the menu, removes it from the queue */
/* Else, end menu tracking */
fRemove = MENU_ButtonDown( &mt, hmenu, wFlags );
fEndMenu = !fRemove;
break;
case WM_RBUTTONUP: