Share via


OLEMENU Enumeration

Specifies the way the menu belonging to the UI active object is to be used with a component's container menu.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Public Enumeration OLEMENU
public enum OLEMENU
public enum class OLEMENU
type OLEMENU
public enum OLEMENU

Members

Member name Description
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 (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). OLEMENU_ROUTEACTIVEASCNTRCMD 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.

Remarks

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.

COM Signature

From oleipc.idl.

[C++]

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace