Click or drag to resize
Xcalibur Systems LLC Logo

MenuHelperInsertMenuItem Method

Inserts a new menu item at the specified position in a menu.

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

Parameters

menuHandle  IntPtr
A handle to the menu in which the new menu item is inserted.
item  UInt32
The identifier or position of the menu item before which to insert the new item. The meaning of this parameter depends on the value of byPosition.
byPosition  Boolean
Controls the meaning of item. 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 contains information about the new menu item.

Return Value

Boolean
See Also