|
MenuHelperGetMenuItemInfo 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 GetMenuItemInfo(
IntPtr menuHandle,
uint item,
bool byPosition,
out MenuItemInfo menuItemInfo
)
<DllImportAttribute("user32.dll">]
Public Shared Function GetMenuItemInfo (
menuHandle As IntPtr,
item As UInteger,
byPosition As Boolean,
<OutAttribute> ByRef menuItemInfo As MenuItemInfo
) As Boolean
public:
[DllImportAttribute(L"user32.dll")]
static bool GetMenuItemInfo(
IntPtr menuHandle,
unsigned int item,
bool byPosition,
[OutAttribute] MenuItemInfo% menuItemInfo
)
[<DllImportAttribute("user32.dll")>]
static member GetMenuItemInfo :
menuHandle : IntPtr *
item : uint32 *
byPosition : bool *
menuItemInfo : MenuItemInfo byref -> bool
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
BooleanSee Also