![Xcalibur Systems LLC Logo](../icons/logo.png) |
MenuHelperInsertMenuItem Method |
Namespace: Xcalibur.NativeMethods.V2.MenusAssembly: 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
)
<DllImportAttribute("user32.dll">]
Public Shared Function InsertMenuItem (
menuHandle As IntPtr,
item As UInteger,
byPosition As Boolean,
ByRef menuItemInfo As MenuItemInfo
) As Boolean
public:
[DllImportAttribute(L"user32.dll")]
static bool InsertMenuItem(
IntPtr menuHandle,
unsigned int item,
bool byPosition,
MenuItemInfo% menuItemInfo
)
[<DllImportAttribute("user32.dll")>]
static member InsertMenuItem :
menuHandle : IntPtr *
item : uint32 *
byPosition : bool *
menuItemInfo : MenuItemInfo byref -> bool
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