次の方法で共有


IOleComponent Interface

Provides components needing idle time, such as packages that manage modeless top-level windows, with access to the message loop and other facilities.

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

Syntax

'宣言
<GuidAttribute("000C0600-0000-0000-C000-000000000046")> _
<InterfaceTypeAttribute()> _
Public Interface IOleComponent
[GuidAttribute("000C0600-0000-0000-C000-000000000046")]
[InterfaceTypeAttribute()]
public interface IOleComponent

The IOleComponent type exposes the following members.

Methods

  Name Description
Public method FContinueMessageLoop Called during each iteration of a message loop.
Public method FDoIdle Gives the component a chance to do idle time tasks.
Public method FPreTranslateMessage Processes the message before it is translated and dispatched.
Public method FQueryTerminate Called when the component manager wishes to know if the component is in a state in which it can terminate.
Public method FReserved1 Reserved.
Public method HwndGetWindow Gets a window associated with the component.
Public method OnActivationChange Notifies the component when a new object is being activated.
Public method OnAppActivate Notifies the component when the host application gains or loses activation.
Public method OnEnterState Notifies the component when the application enters or exits the specified state.
Public method OnLoseActivation Notifies the active component that it has lost its active status because the host or another component has become active.
Public method Terminate Terminates the message loop.

Top

Remarks

Register the interface with IOleComponentManager.

See Also

Reference

Microsoft.VisualStudio.OLE.Interop Namespace