|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)
|OLEMENU_CNTRMENUONLY||Indicates that all menu commands should be routed to the component. Only the menu of the container should be displayed.|
|OLEMENU_MENUMERGE||Indicates that the UI active object's menu should merge with the component's container menu.|
|OLEMENU_OBJECTMENUONLY||Indicates that only the menu of the active object should be displayed.|
|OLEMENU_ROUTEACTIVEASCNTRCMD||Indicates that commands from the active object menu are routed first to the main component (). If the main component does not handle a command, it is then routed to the component that is UI active (visible with focus). may only be used by a main component that wants to ensure that it is in control of commands that are dispatched to its nested components. It is analogous to .|
The OLEMENU_MENUMERGE, OLEMENU_CNTRMENUONLY, and OLEMENU_OBJECTMENUONLY flags are mutually exclusive.
The hardwired in-place component returns these flags from GetCntrContextMenu to control how the component control's context menu is merged into the container's menu.