|
MenuHelperDeleteMenu Method |
Deletes an item from the specified menu. If the menu item opens a menu or submenu, this
function destroys the handle to the menu or submenu and frees the memory used by the menu
or submenu.
DeleteMenu function Namespace: Xcalibur.NativeMethods.V2.MenusAssembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax [DllImportAttribute("user32.dll")]
public static bool DeleteMenu(
IntPtr menuHandle,
uint position,
uint flags
)
<DllImportAttribute("user32.dll">]
Public Shared Function DeleteMenu (
menuHandle As IntPtr,
position As UInteger,
flags As UInteger
) As Boolean
public:
[DllImportAttribute(L"user32.dll")]
static bool DeleteMenu(
IntPtr menuHandle,
unsigned int position,
unsigned int flags
)
[<DllImportAttribute("user32.dll")>]
static member DeleteMenu :
menuHandle : IntPtr *
position : uint32 *
flags : uint32 -> bool
Parameters
- menuHandle IntPtr
- A handle to the menu to be changed.
- position UInt32
- The menu item to be deleted, as determined by the flags parameter.
- flags UInt32
- Indicates how the position parameter is interpreted.
Return Value
BooleanSee Also