MenuItem& = the item's ID number
MenuItemFlags& = the desired menu item state (%MF_GRAYED, etc).
MenuItemFlags& = the desired menu item state (%MF_GRAYED, etc).
Code:
MenuItemFlags& = ({%MF_BYPOSITION | %MF_BYCOMMAND}) OR ({%MF_GRAYED|%MF_ENABLED|%MF_DISABLED})
When MenuItemFlags includes %MF_BYPOSITION, Menuitem& is the zero-based index of the item on the menu to affect.
When MenuItemFlags includes %MF_BYCOMMAND, MenuItem& is the "control id" associated with the menu item.
MCM
Leave a comment: