Freigeben über


IOleComponent.OnAppActivate(Int32, UInt32) Method

Definition

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

public:
 void OnAppActivate(int fActive, System::UInt32 dwOtherThreadID);
public:
 void OnAppActivate(int fActive, unsigned int dwOtherThreadID);
void OnAppActivate(int fActive, unsigned int dwOtherThreadID);
public void OnAppActivate (int fActive, uint dwOtherThreadID);
abstract member OnAppActivate : int * uint32 -> unit
Public Sub OnAppActivate (fActive As Integer, dwOtherThreadID As UInteger)

Parameters

fActive
Int32

True if the application is being activated, false if it is losing activation.

dwOtherThreadID
UInt32

The ID of the thread that owns the window.

Remarks

If fActive is true, the host app is being activated and dwOtherThreadID is the ID of the thread owning the window being deactivated. If fActive is false, the host app is being deactivated and dwOtherThreadID is the ID of the thread owning the window being activated.

This method is not called when both the window being activated and the one being deactivated belong to the host app.

Applies to