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

MENUINFO (Structures)
 
.
Summary
TODO - a short description

C# Definition:

    [StructLayout(LayoutKind.Sequential)]
    public struct MENUINFO
    {
    public UInt32 cbSize;
    public UInt32 fMask;
    public UInt32 dwStyle;
    public uint cyMax;
    public IntPtr hbrBack;
    public UInt32 dwContextHelpID;
    public UIntPtr dwMenuData;
    }
   [StructLayout(LayoutKind.Sequential)]
   struct MENUINFO {
    public Int32 cbSize;
    public Int32 fMask;
    public Int32 dwStyle;
    public Int32 cyMax;
    public IntPtr hbrBack;
    public Int32 dwContextHelpID;
    public Int32 dwMenuData;
    }

VB Definition:

    Private Structure MENUINFO
    Dim cbSize As Int32
    Dim fMask As Int32
    Dim dwStyle As Int32
    Dim cyMax As Int32
    Dim hbrBack As IntPtr
    Dim dwContextHelpID As Int32
    Dim dwMenuData As Int32
    Public Sub New(ByVal owner As Control)
        cbSize = Marshal.SizeOf(GetType(MENUINFO))
    End Sub
    End Structure

User-Defined Field Types:

None.

Notes:

None.

Sample Code:

MENUINFO mi = new MENUINFO();

mi.cbSize = System.Runtime.InteropServices­.Marshal.SizeOf(typeof(MENUINF­O));

The above don't work on x64 Vista. This one does.

    [StructLayout(LayoutKind.Sequential)]
    public struct MENUINFO
    {
    public UInt32 cbSize;
    public UInt32 fMask;
    public UInt32 dwStyle;
    public uint cyMax;
    public IntPtr hbrBack;
    public UInt32 dwContextHelpID;
    public UIntPtr dwMenuData;
    }

Documentation
MENUINFO on MSDN

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