Table of Contents

Struct Win32.MenuItemInfo

Namespace
Npp.DotNet.Plugin
Assembly
Npp.DotNet.Plugin.dll

Contains information about a menu item.

public struct Win32.MenuItemInfo
Inherited Members

Remarks

Fields

cbSize

The size of the structure, in bytes. The caller must set this member to sizeof(MENUITEMINFO).

public int cbSize

Field Value

int

cch

The length of the menu item text, in characters, when information is received about a menu item of the MIIM_STRING type.

public int cch

Field Value

int

Remarks

The cch member is used when the MIIM_STRING flag is set in the fMask member.

dwItemData

An application-defined value associated with the menu item.

public UIntPtr dwItemData

Field Value

UIntPtr

Remarks

Used only if fMask has a value of MIIM_DATA.

dwTypeData

The contents of the menu item. The meaning of this member depends on the value of fType and is used only if the MIIM_TYPE flag is set in the fMask member.

public IntPtr dwTypeData

Field Value

IntPtr

Remarks

dwTypeData is used only if the MIIM_STRING flag is set in the fMask member.

fMask

Indicates the members to be retrieved or set.

public uint fMask

Field Value

uint

fState

The menu item state.

public uint fState

Field Value

uint

Remarks

Used only if fMask has a value of MIIM_STATE.

fType

The menu item type.

public uint fType

Field Value

uint

Remarks

Used only if fMask has a value of MIIM_FTYPE.

hSubMenu

A handle to the drop-down menu or submenu associated with the menu item. If the menu item is not an item that opens a drop-down menu or submenu, this member is Zero.

public IntPtr hSubMenu

Field Value

IntPtr

Remarks

Used only if fMask has a value of MIIM_SUBMENU.

hbmpChecked

A handle to the bitmap to display next to the item if it is selected. If this member is Zero, a default bitmap is used. If the MFT_RADIOCHECK type value is specified, the default bitmap is a bullet. Otherwise, it is a check mark.

public IntPtr hbmpChecked

Field Value

IntPtr

Remarks

Used only if fMask has a value of MIIM_CHECKMARKS.

hbmpItem

A handle to the bitmap to be displayed.

public IntPtr hbmpItem

Field Value

IntPtr

Remarks

Used when the MIIM_BITMAP flag is set in the fMask member.

hbmpUnchecked

A handle to the bitmap to display next to the item if it is not selected. If this member is Zero, no bitmap is used.

public IntPtr hbmpUnchecked

Field Value

IntPtr

Remarks

Used only if fMask has a value of MIIM_CHECKMARKS.

wID

An application-defined value that identifies the menu item.

public int wID

Field Value

int

Remarks

Used only if fMask has a value of MIIM_ID.