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