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

DeleteMenu (user32)
 
.
Summary

C# Signature:

[DllImport("user32.dll")]
static extern bool DeleteMenu(IntPtr hMenu, uint uPosition, uint uFlags);

User-Defined Types:

Constants used for menu position:

        internal const UInt32 SC_SIZE     =0xF000;
        internal const UInt32 SC_MOVE     =0xF010;
        internal const UInt32 SC_MINIMIZE     =0xF020;
        internal const UInt32 SC_MAXIMIZE     =0xF030;
        internal const UInt32 SC_NEXTWINDOW   =0xF040;
        internal const UInt32 SC_PREVWINDOW   =0xF050;
        internal const UInt32 SC_CLOSE    =0xF060;
        internal const UInt32 SC_VSCROLL      =0xF070;
        internal const UInt32 SC_HSCROLL      =0xF080;
        internal const UInt32 SC_MOUSEMENU    =0xF090;
        internal const UInt32 SC_KEYMENU      =0xF100;
        internal const UInt32 SC_ARRANGE      =0xF110;
        internal const UInt32 SC_RESTORE      =0xF120;
        internal const UInt32 SC_TASKLIST     =0xF130;
        internal const UInt32 SC_SCREENSAVE   =0xF140;
        internal const UInt32 SC_HOTKEY       =0xF150;
        internal const UInt32 SC_DEFAULT      =0xF160;
        internal const UInt32 SC_MONITORPOWER =0xF170;
        internal const UInt32 SC_CONTEXTHELP  =0xF180;
        internal const UInt32 SC_SEPARATOR    =0xF00F;

Constants used for flags

        internal const UInt32 MF_BYCOMMAND    =0x00000000;
        internal const UInt32 MF_BYPOSITION       =0x00000400;

FOR VBA:

Notes:

None.

Public Enum SCType

SC_SIZE = &HF000
SC_MOVE = &HF010
SC_MINIMIZE = &HF020
SC_MAXIMIZE = &HF030
SC_NEXTWINDOW = &HF040
SC_PREVWINDOW = &HF050
SC_CLOSE = &HF060
SC_VSCROLl = &HF070
SC_HSCROLL = &HF080
SC_MOUSEMENU = &HF090
SC_KEYMENU = &HF100
SC_ARRANGE = &HF110
SC_RESTORE = &HF120
SC_TASKLIST = &HF130
SC_SCREENSAVE = &HF140
SC_HOTKEY = &HF150
SC_DEFAULT = &HF160
SC_MONITORPOWER = &HF170
SC_CONTEXTHELP = &HF180
SC_SEPARATOR = &HF00F

End Enum

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation
DeleteMenu on MSDN

Please edit this page!

Do you have...

  • helpful tips or sample code to share for using this API in managed code?
  • corrections to the existing content?
  • variations of the signature you want to share?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).

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