Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

MENUITEMINFO (Structures)
 
.
Summary
The MENUITEMINFO structure contains information about a menu item.

C# Signature:

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)]
class MENUITEMINFO {
   public Int32 cbSize = Marshal.SizeOf(typeof(MENUITEMINFO));
   public MIIM fMask;
   public UInt32 fType;
   public UInt32 fState;
   public UInt32 wID;
   public IntPtr hSubMenu;
   public IntPtr hbmpChecked;
   public IntPtr hbmpUnchecked;
   public IntPtr dwItemData;
   public string dwTypeData = null;
   public UInt32 cch; // length of dwTypeData
   public IntPtr hbmpItem;

   public MENUITEMINFO() { }
   public MENUITEMINFO(MIIM pfMask) {
     fMask = pfMask;
   }
}

VB.Net Signature:

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto)> _
Public Class MENUITEMINFO
    Public cbSize As Int32 = Marshal.SizeOf(GetType(MENUITEMINFO))
    Public fMask As MIIM
    Public fType As UInt32
    Public fState As UInt32
    Public wID As UInt32
    Public hSubMenu As IntPtr
    Public hbmpChecked As IntPtr
    Public hbmpUnchecked As IntPtr
    Public dwItemData As IntPtr
    Public dwTypeData As String = Nothing
    Public cch As UInt32
    Public hbmpItem As IntPtr
End Class

User-Defined Field Types:

MIIM

Notes:

Used by GetMenuItemInfo

Documentation

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions