MENUITEMINFO class base struct

Contains information about a menu item.

To learn more, see learn.microsoft.com/windows/win32/api/winuser/ns-winuser-menuiteminfow.

Inheritance
Implemented types
Available extensions

Constructors

Properties

address Pointer<T>

Available on T, provided by the StructAddress extension

The memory address of the underlying data.
no setter
cbSize int
The size of the struct in bytes.
getter/setter pair
cch int
The length of the menu item text, in characters, when information is received about a menu item of the MFT_STRING type.
getter/setter pair
dwItemData int
An application-defined value associated with the menu item.
getter/setter pair
dwTypeData PWSTR
The contents of the menu item.
getter/setter pair
fMask MENU_ITEM_MASK
getter/setter pair
fState MENU_ITEM_STATE
The menu item state.
getter/setter pair
fType MENU_ITEM_TYPE
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hbmpChecked HBITMAP
A handle to the bitmap to display next to the item if it is selected.
getter/setter pair
hbmpItem HBITMAP
A handle to the bitmap to be displayed, or it can be one of the values in the following table.
getter/setter pair
hbmpUnchecked HBITMAP
A handle to the bitmap to display next to the item if it is not selected.
getter/setter pair
hSubMenu HMENU
A handle to the drop-down menu or submenu associated with the menu item.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
wID int
An application-defined value that identifies the menu item.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toNative({Allocator allocator = adaptiveCalloc}) Pointer<MENUITEMINFO>
Allocates native memory and copies the contents of this struct into it.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited