Condividi tramite


SingleTaskIdleManager.IOleComponent.OnAppActivate(Int32, UInt32) Method

Definition

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

 virtual void Microsoft.VisualStudio.OLE.Interop.IOleComponent.OnAppActivate(int fActive, System::UInt32 dwOtherThreadID) = Microsoft::VisualStudio::OLE::Interop::IOleComponent::OnAppActivate;
 virtual void Microsoft.VisualStudio.OLE.Interop.IOleComponent.OnAppActivate(int fActive, unsigned int dwOtherThreadID) = Microsoft::VisualStudio::OLE::Interop::IOleComponent::OnAppActivate;
void Microsoft.VisualStudio.OLE.Interop.IOleComponent.OnAppActivate(int fActive, unsigned int dwOtherThreadID);
void IOleComponent.OnAppActivate (int fActive, uint dwOtherThreadID);
abstract member Microsoft.VisualStudio.OLE.Interop.IOleComponent.OnAppActivate : int * uint32 -> unit
override this.Microsoft.VisualStudio.OLE.Interop.IOleComponent.OnAppActivate : int * uint32 -> unit
Sub OnAppActivate (fActive As Integer, dwOtherThreadID As UInteger) Implements IOleComponent.OnAppActivate

Parameters

fActive
Int32

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

dwOtherThreadID
UInt32

The identifier of the thread that owns the window.

Implements

Remarks

If fActive is true, the host application is being activated and dwOtherThreadID is the identifier of the thread owning the window being deactivated. If fActive is false, the host application is being deactivated and dwOtherThreadID is the identifier 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 application.

Applies to