Click or drag to resize
Xcalibur Systems LLC Logo

MenuHelperEnableMenuItem Method

Enables, disables, or grays the specified menu item.

EnableMenuItem function


Namespace: Xcalibur.NativeMethods.V2.Menus
Assembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax
[DllImportAttribute("user32.dll")]
public static bool EnableMenuItem(
	IntPtr menuHandle,
	uint enableItem,
	uint enable
)

Parameters

menuHandle  IntPtr
A handle to the menu.
enableItem  UInt32
The menu item to be enabled, disabled, or grayed, as determined by the enable parameter. This parameter specifies an item in a menu bar, menu, or submenu.
enable  UInt32
Controls the interpretation of the enableItem parameter and indicate whether the menu item is enabled, disabled, or grayed. This parameter must be a combination of the following values.

Return Value

Boolean
See Also