Partilhar via


IOleComponent2 Interface

Definition

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

public interface class IOleComponent2 : Microsoft::VisualStudio::OLE::Interop::IOleComponent
public interface class IOleComponent2 : Microsoft::VisualStudio::OLE::Interop::IOleComponent
__interface IOleComponent2 : Microsoft::VisualStudio::OLE::Interop::IOleComponent
[System.Runtime.InteropServices.Guid("ED0751FC-D772-4D1D-88FC-0C1AA275391B")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IOleComponent2 : Microsoft.VisualStudio.OLE.Interop.IOleComponent
[System.Runtime.InteropServices.Guid("ED0751FC-D772-4D1D-88FC-0C1AA275391B")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IOleComponent2 : Microsoft.VisualStudio.OLE.Interop.IOleComponent
[<System.Runtime.InteropServices.Guid("ED0751FC-D772-4D1D-88FC-0C1AA275391B")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IOleComponent2 = interface
    interface IOleComponent
[<System.Runtime.InteropServices.Guid("ED0751FC-D772-4D1D-88FC-0C1AA275391B")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IOleComponent2 = interface
    interface IOleComponent
Public Interface IOleComponent2
Implements IOleComponent
Attributes
Implements

Remarks

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

Methods

FContinueMessageLoop(UInt32, IntPtr, MSG[])
FDoIdle(UInt32)
FPreTranslateMessage(MSG[])
FQueryTerminate(Int32)
FReserved1(UInt32, UInt32, IntPtr, IntPtr)
GetWaitHandlesAndTimeout(IntPtr[], UInt32, UInt32, IntPtr)

When overridden in a derived class, returns the time-out and the list of handles on which this component is waiting.

HwndGetWindow(UInt32, UInt32)
OnActivationChange(IOleComponent, Int32, OLECRINFO[], Int32, OLECHOSTINFO[], UInt32)
OnAppActivate(Int32, UInt32)
OnEnterState(UInt32, Int32)
OnHandleSignaled(UInt32, IntPtr, Boolean)

When overridden in a derived class, enables the component to respond to a signal on a wait handle.

OnLoseActivation()
OnTimeout(IntPtr, Boolean)

When overridden in a derived class, enables the component to respond to a time-out on the message loop.

Terminate()

Applies to