Click or drag to resize
Xcalibur Systems LLC Logo

MenuHelperGetMenuItemInfo Method

Retrieves information about a menu item.

GetMenuItemInfo 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 GetMenuItemInfo(
	IntPtr menuHandle,
	uint item,
	bool byPosition,
	out MenuItemInfo menuItemInfo
)

Parameters

menuHandle  IntPtr
A handle to the menu that contains the menu item.
item  UInt32
The identifier or position of the menu item to get information about. The meaning of this parameter depends on the value of byPosition.
byPosition  Boolean
The meaning of uItem. If this parameter is FALSE, uItem is a menu item identifier. Otherwise, it is a menu item position.
menuItemInfo  MenuItemInfo
A pointer to a structure that specifies the information to retrieve and receives information about the menu item. Note that you must set the member to sizeof(MENUITEMINFO) before calling this function.

Return Value

Boolean
See Also