@msdn=https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-deletemenu @pinvoke=http://pinvoke.net/$$$.htm Summary: The DeleteMenu API !!!!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: 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@msdn on MSDN
Edit user32.DeleteMenu
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.