共用方式為


OLECOMPFLAG Enumeration

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)

Syntax

'宣告
<FlagsAttribute> _
Public Enumeration OLECOMPFLAG
'用途
Dim instance As OLECOMPFLAG
[FlagsAttribute]
public enum OLECOMPFLAG
[FlagsAttribute]
public enum class OLECOMPFLAG
[<FlagsAttribute>]
type OLECOMPFLAG
public enum OLECOMPFLAG

Members

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.

Remarks

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.

[C++]

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace