Specifies flags that are used to control interactions between an in-place VSPackage object, its container, and the environment.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

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


<FlagsAttribute> _
Public Enumeration OLECOMPFLAG
public enum OLECOMPFLAG
public enum class OLECOMPFLAG
public enum OLECOMPFLAG


Member name Description
OLECOMPFLAG_ROUTEACTIVEASCNTRCMD Indicates that the environment should first route all "Active Object" commands to the container of the active in-place object rather than to the object itself.

If the container cannot handle a command, the command is then routed to the in-place object that is visible and has focus.

OLECOMPFLAG_INHIBITNESTEDCOMPUI Indicates that nested objects are prevented from displaying their own menus and toolbars when they are in-place active.


OLECOMPFLAG_ROUTEACTIVEASCNTRCMD may only be used by an object acting as the main component (OLEROLE_MAINCOMPONENT) to ensure that it is in control of commands that are dispatched to its nested in-place objects.

The OLECOMPFLAG_INHIBITNESTEDCOMPUI flag is currently not supported. When supported, it may only be used by a main component (OLEROLE_MAINCOMPONENT).

COM Signature

From oleipc.idl.


See Also


Microsoft.VisualStudio.Shell.Interop Namespace