共用方式為


IOleComponent Interface

Definition

Provides components needing idle time, such as packages that manage modeless top-level windows, with access to the message loop and other facilities.

public interface class IOleComponent
public interface class IOleComponent
__interface IOleComponent
[System.Runtime.InteropServices.ComConversionLoss]
[System.Runtime.InteropServices.Guid("000C0600-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IOleComponent
[System.Runtime.InteropServices.ComConversionLoss]
[System.Runtime.InteropServices.Guid("000C0600-0000-0000-C000-000000000046")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IOleComponent
[<System.Runtime.InteropServices.ComConversionLoss>]
[<System.Runtime.InteropServices.Guid("000C0600-0000-0000-C000-000000000046")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IOleComponent = interface
[<System.Runtime.InteropServices.ComConversionLoss>]
[<System.Runtime.InteropServices.Guid("000C0600-0000-0000-C000-000000000046")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IOleComponent = interface
Public Interface IOleComponent
Derived
Attributes

Remarks

Register the interface with IOleComponentManager.

Methods

FContinueMessageLoop(UInt32, IntPtr, MSG[])

Called during each iteration of a message loop.

FDoIdle(UInt32)

Gives the component a chance to do idle time tasks.

FPreTranslateMessage(MSG[])

Processes the message before it is translated and dispatched.

FQueryTerminate(Int32)

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

FReserved1(UInt32, UInt32, IntPtr, IntPtr)

Reserved.

HwndGetWindow(UInt32, UInt32)

Gets a window associated with the component.

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

Notifies the component when a new object is being activated.

OnAppActivate(Int32, UInt32)

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

OnEnterState(UInt32, Int32)

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

OnLoseActivation()

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

Terminate()

Terminates the message loop.

Applies to