Stop menu tracking when clicking on the menu bar where there is no

menu item.
This commit is contained in:
Pascal Lessard 2000-01-09 02:38:02 +00:00 committed by Alexandre Julliard
parent d9ba02d9da
commit ae6de763e9
1 changed files with 6 additions and 1 deletions

View File

@ -2635,7 +2635,12 @@ static INT MENU_TrackMenu( HMENU hmenu, UINT wFlags, INT x, INT y,
fEndMenu = FALSE;
if (!(menu = (POPUPMENU *) USER_HEAP_LIN_ADDR( hmenu ))) return FALSE;
if (wFlags & TPM_BUTTONDOWN) MENU_ButtonDown( &mt, hmenu, wFlags );
if (wFlags & TPM_BUTTONDOWN)
{
/* Get the result in order to start the tracking or not */
fRemove = MENU_ButtonDown( &mt, hmenu, wFlags );
fEndMenu = !fRemove;
}
EVENT_Capture( mt.hOwnerWnd, HTMENU );