Removes the specified item from the specified menu.
- Menu
An enumMenu value.Value Description Menu_Context Context menu activated. Menu_Toolbar Toolbar menu activated. - Tool
An enumIXTool value.Value Description TOOL_Hand Image panning tool. TOOL_Mag Magnifying window. TOOL_MouseWheelHorizScroll Mouse wheel horizontal scroll. TOOL_MouseWheelVertScroll Mouse wheel vertical scroll. TOOL_MouseWheelZoom Mouse wheel zoom. TOOL_None No tool selected. TOOL_Pan Image viewing pan tool. TOOL_Select Rubberband window selection tool. TOOL_ZoomIn Zoom in tool. TOOL_ZoomOut Zoom out tool. TOOL_ZoomRect Zoom rectangle tool. - TopMenuID
- Top-level menu ID of the item to change.
- SubMenuID
- Sub-level menu ID to change, if this is to change a sub-level menu item, otherwise this parameter should be 0.
The result of the delete operation.
If the menu item is to be a top-level menu item then the SubMenuID should be 0. However, this will delete all sub-level menu items as well for that top-level menu item.
If the TopMenuID and SubLevelID are both 0 then the entire menu is cleared.
Note: The Toolbar must be activated before any context menus can be modified.