mirror of
https://github.com/reactos/reactos.git
synced 2024-10-07 01:44:21 +00:00
Allow selecting disabled menu items
svn path=/trunk/; revision=30515
This commit is contained in:
parent
232b9edcf0
commit
f5e6721b33
|
@ -2081,8 +2081,7 @@ MenuMoveSelection(HWND WndOwner, PROSMENUINFO MenuInfo, INT Offset)
|
|||
}
|
||||
/* If this is a good candidate; */
|
||||
if (MenuGetRosMenuItemInfo(MenuInfo->Self, i, &ItemInfo) &&
|
||||
0 == (ItemInfo.fType & MF_SEPARATOR) &&
|
||||
0 == (ItemInfo.fState & (MFS_DISABLED | MFS_GRAYED)) )
|
||||
0 == (ItemInfo.fType & MF_SEPARATOR))
|
||||
{
|
||||
MenuSelectItem(WndOwner, MenuInfo, i, TRUE, NULL);
|
||||
MenuCleanupRosMenuItemInfo(&ItemInfo);
|
||||
|
@ -2638,10 +2637,10 @@ MenuMouseMove(MTRACKER *Mt, HMENU PtMenu, UINT Flags)
|
|||
{
|
||||
MenuInitRosMenuItemInfo(&ItemInfo);
|
||||
if (MenuGetRosMenuItemInfo(MenuInfo.Self, Index, &ItemInfo) &&
|
||||
!(ItemInfo.fType & MF_SEPARATOR) &&
|
||||
!(ItemInfo.fState & (MFS_DISABLED | MFS_GRAYED)) )
|
||||
!(ItemInfo.fType & MF_SEPARATOR))
|
||||
{
|
||||
MenuSwitchTracking(Mt, &MenuInfo, Index);
|
||||
if (!(ItemInfo.fState & (MFS_DISABLED | MFS_GRAYED)))
|
||||
Mt->CurrentMenu = MenuShowSubPopup(Mt->OwnerWnd, &MenuInfo, FALSE, Flags);
|
||||
}
|
||||
MenuCleanupRosMenuItemInfo(&ItemInfo);
|
||||
|
|
Loading…
Reference in a new issue