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)

public interface IOleComponent

System_CAPS_pubmethodFContinueMessageLoop(UInt32, IntPtr, MSG[])

Called during each iteration of a message loop.


Gives the component a chance to do idle time tasks.


Processes the message before it is translated and dispatched.


Called when the component manager wishes to know if the component is in a state in which it can terminate.

System_CAPS_pubmethodFReserved1(UInt32, UInt32, IntPtr, IntPtr)


System_CAPS_pubmethodHwndGetWindow(UInt32, UInt32)

Gets a window associated with the component.

System_CAPS_pubmethodOnActivationChange(IOleComponent, Int32, OLECRINFO[], Int32, OLECHOSTINFO[], UInt32)

Notifies the component when a new object is being activated.

System_CAPS_pubmethodOnAppActivate(Int32, UInt32)

Notifies the component when the host application gains or loses activation.

System_CAPS_pubmethodOnEnterState(UInt32, Int32)

Notifies the component when the application enters or exits the specified state.


Notifies the active component that it has lost its active status because the host or another component has become active.


Terminates the message loop.

Register the interface with IOleComponentManager.

Return to top