user32: Don't close a popup menu when clicking a sub-menu parent item twice.
This commit is contained in:
parent
c6de8ad981
commit
cb2b15921d
|
@ -2617,12 +2617,13 @@ static INT MENU_ButtonUp( MTRACKER* pmt, HMENU hPtMenu, UINT wFlags)
|
|||
return executedMenuId;
|
||||
}
|
||||
|
||||
/* If we are dealing with the top-level menu */
|
||||
/* If we are dealing with the menu bar */
|
||||
/* and this is a click on an already "popped" item: */
|
||||
/* Stop the menu tracking and close the opened submenus */
|
||||
if((pmt->hTopMenu == hPtMenu) && ptmenu->bTimeToHide)
|
||||
return 0;
|
||||
}
|
||||
if( GetMenu(ptmenu->hWnd) == hPtMenu )
|
||||
ptmenu->bTimeToHide = TRUE;
|
||||
}
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue