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)

[ComConversionLossAttribute]
[GuidAttribute("000C0600-0000-0000-C000-000000000046")]
[InterfaceTypeAttribute(1)]
public interface IOleComponent

NameDescription
System_CAPS_pubmethodFContinueMessageLoop(UInt32, IntPtr, MSG[])

Called during each iteration of a message loop.

System_CAPS_pubmethodFDoIdle(UInt32)

Gives the component a chance to do idle time tasks.

System_CAPS_pubmethodFPreTranslateMessage(MSG[])

Processes the message before it is translated and dispatched.

System_CAPS_pubmethodFQueryTerminate(Int32)

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)

Reserved.

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.

System_CAPS_pubmethodOnLoseActivation()

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

System_CAPS_pubmethodTerminate()

Terminates the message loop.

Register the interface with IOleComponentManager.

Return to top
Show: