IOleComponent2 Interface

Enables components to participate in message processing while they are waiting for handles.

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

[InterfaceTypeAttribute()]
[GuidAttribute("ED0751FC-D772-4D1D-88FC-0C1AA275391B")]
public interface IOleComponent2 : IOleComponent

The IOleComponent2 type exposes the following members.

  NameDescription
Public methodFContinueMessageLoop
Public methodFDoIdle
Public methodFPreTranslateMessage
Public methodFQueryTerminate
Public methodFReserved1
Public methodGetWaitHandlesAndTimeoutWhen overridden in a derived class, returns the time-out and the list of handles on which this component is waiting.
Public methodHwndGetWindow
Public methodOnActivationChange
Public methodOnAppActivate
Public methodOnEnterState
Public methodOnHandleSignaledWhen overridden in a derived class, enables the component to respond to a signal on a wait handle.
Public methodOnLoseActivation
Public methodOnTimeoutWhen overridden in a derived class, enables the component to respond to a time-out on the message loop.
Public methodTerminate
Top

To add the component to the message loop and receive notification of signals, call FPushMessageLoop with a uReason parameter value of oleloopModelessFormWithHandles or oleloopModelessFormWithHandlesNoIdle.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft