Partager via


IMsoComponent Interface

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Provides components that need idle time, such as packages that manage modeless top-level windows, with access to the message loop and other facilities. Register the interface with the component manager that implements the IMsoComponentManager interface.

Inherits from

IUnknown

Interface identifier

IID_IMsoComponent = {000C0600-0000-0000-C000-000000000046}

Vtable Order

FDebugMessage

This method is reserved for internal use and is not intended to be used in your code. This method always returns TRUE.

FPreTranslateMessage

Enables components to process a message before the message is translated and is dispatched. Components can use the TranslateAccelerator function, use the IsDialogMessage function, modify the pMsg parameter, or take some other action.

OnEnterState

Notifies a component when the application enters or exits the state specified by the uStateID parameter.

OnAppActivate

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

OnLoseActivation

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

OnActivationChange

Notifies the component when a new object is being activated.

FDoIdle

Enables the component to do idle-time tasks.

FContinueMessageLoop

Indicates whether the message loop pushed by the component should continue.

FQueryTerminate

Indicates whether the component can terminate.

Terminate

Terminates the registration of the IMsoComponent interface.

HwndGetWindow

Retrieves a window that is associated with the component.

See Also

Reference

IMsoComponentManager Interface

Concepts

Component API Interfaces