OleComponent Members
Include Protected Members
Include Inherited Members
Basic implementation of a disposable IOleComponent
The OleComponent type exposes the following members.
Constructors
Name | Description | |
---|---|---|
OleComponent | Construct an instance of OleComponent. This overload will call FRegisterComponent automatically on construction. |
Top
Methods
Name | Description | |
---|---|---|
BeginTracking | Makes this IOleComponent the tracking component with its associated IOleComponentManager. | |
CreateHostedComponent | Creates a new OleComponent instance using Instance as the IOleComponentManager it needs to register itself. | |
Dispose() | Releases all resources used by the current instance of the DisposableObject class. (Inherited from DisposableObject.) | |
Dispose(Boolean) | (Inherited from DisposableObject.) | |
DisposeManagedResources | Disposes of this object, calling FRevokeComponent if our manager field is non-null and our componentCookie field is not 0. (Overrides DisposableObject.DisposeManagedResources().) | |
DisposeNativeResources | (Inherited from DisposableObject.) | |
DoOleEvents | ||
EndTracking | Makes this IOleComponent no longer the tracking component with its associated IOleComponentManager. | |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
FContinueMessageLoopCore | Default implementation of FContinueMessageLoop. Simply raises the ContinueMessageLoop event if there are any listeners. | |
FDoIdleCore | Default implementation of FDoIdle. Simply raises the DoIdle and DoPeriodicIdle events as appropriate (based on value of ) if there are any listeners. | |
Finalize | (Inherited from DisposableObject.) | |
FPreTranslateMessageCore | Default implemmentation of FPreTranslateMessage. Simply raises the PreTranslateMessage event if there are listeners. | |
FQueryTerminateCore | Default implemmentation of FQueryTerminate. Simply raises the QueryTerminate event if there are listeners. | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HwndGetWindowCore | Default implemmentation of HwndGetWindow. Simply raises the GetWindow event if there are listeners. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnActivationChangeCore | Default implemmentation of OnActivationChange. Simply raises the ActivationChange event if there are listeners. | |
OnAppActivateCore | Default implemmentation of OnAppActivate. Simply raises the AppActivate event if there are listeners. | |
OnChangeStateCore | Default implemmentation of OnEnterState. Simply raises the approriate event based on what state changed (described in ComponentState. | |
OnLoseActivationCore | Default implemmentation of OnLoseActivation. Simply raises the ActivationLost event if there are listeners. | |
PushMessageLoop | Pushes this component to the OleComonentManager as the message loop handler by calling FPushMessageLoop. Message loop blocks until an ContinueMessageLoop handler sets the ContinuePumping /// to false. | |
TerminateCore | Default implemmentation of Terminate. Simply raises the Terminate event if there are listeners. Also calls Dispose and nulls out any reference to a IOleComponentManager that we may have been constructed with. | |
ThrowIfDisposed | (Inherited from DisposableObject.) | |
ToString | Returns a String that represents the current Object. (Inherited from Object.) |
Top
Properties
Name | Description | |
---|---|---|
IsDisposed | (Inherited from DisposableObject.) | |
IsTrackingComponent | Sets whether this component is the tracking component, accomplished by calling FSetTrackingComponent. | |
PeriodicIdleTimePeriod | Sets or retrieves the idle time period in milliseconds for this components idle callbacks. |
Top
Events
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IOleComponent.FContinueMessageLoop | Called during each iteration of a message loop that the component pushed. Simply calls through to FContinueMessageLoopCore. | |
IOleComponent.FDoIdle | Called to give a component a chance to do idle time tasks. Component may periodically call FContinueIdle; if this method returns FALSE (0), component should terminate its idle time processing and return. Simply calls through to FDoIdleCore. | |
IOleComponent.FPreTranslateMessage | Host calls this method on the active component (if its registration info (ComponentRegistrationFlags) indicates it is interested in Pre-translate calls) to give the component a chance to process messages before they are translated and dispatched. The host need not call this method if no component is active. Simply calls through to FPreTranslateMessageCore. | |
IOleComponent.FQueryTerminate | Called when component manager wishes to know if the component is in a state in which it can terminate. Simply calls through to FQueryTerminateCore. | |
IOleComponent.FReserved1 | Reserved slot, not called. | |
IOleComponent.HwndGetWindow | Called to retrieve a window associated with the component, as specified by dwWhich which maps to a value in WindowType. Simply calls through to HwndGetWindowCore. | |
IOleComponent.OnActivationChange | Notify component when a new object is being activated. Simply calls through to OnActivationChangeCore. | |
IOleComponent.OnAppActivate | Notify component when the host application gains or loses activation. Simply calls through to OnAppActivateCore. | |
IOleComponent.OnEnterState | Notify component when app enters or exits the state given in uStateID. Simply calls through to OnChangeStateCore. | |
IOleComponent.OnLoseActivation | Notify the active component that it has lost its active status because the host or another component has become active. Simply calls through to OnLoseActivationCore. | |
IOleComponent.Terminate | Called when component manager wishes to terminate the component's registration. Component should revoke its registration with component manager, release references to component manager and perform any necessary cleanup. Simply calls through to TerminateCore. |
Top
See Also
Reference
Microsoft.VisualStudio.PlatformUI.OleComponentSupport Namespace