Specifies the way the menu belonging to the UI active object is to be used with a component's container menu.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
|Indicates that the UI active object's menu should merge with the component's container menu.|
|Indicates that all menu commands should be routed to the component. Only the menu of the container should be displayed.|
|Indicates that only the menu of the active object should be displayed.|
|Indicates that commands from the active object menu are routed first to the main component (OLEROLE_MAINCOMPONENT). 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 OLECOMPFLAG_ROUTEACTIVEASCNTRCMD.|
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.