DisableMenuItemEx

www.progui.co.uk  Top  Previous  Next

DisableMenuItemEx()

Syntax

Success = DisableMenuItemEx(Menu.i, ItemID.l, State.b)

Description

Sets a menu item's disabled state.  Menu specifies the MenuID/Handle of the menu containing the item to be disabled/enabled.  ItemID specifies the ID of the item.  State can be none zero to disable the menu item or zero to enable the menu item.

Any hot-key automatically created for this menu item will also be disabled/enabled.

Returns none zero if successful.

 

MenuEx Index