次の方法で共有


OleComponent.IOleComponent.OnAppActivate(Int32, UInt32) Method

Definition

Notify component when the host application gains or loses activation. Simply calls through to OnAppActivateCore(Int32, UInt32).

 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

If TURE (1), the host app is being activated, if FALSE (0) the host app is being deactivated.

dwOtherThreadID
UInt32

If fActive is TRUE (1) then this is the thread ID of the thread owning the window being deactivated. If fActive is FALSE (0) this is the thread ID of the thread owning the window being activated.

Implements

Remarks

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

Applies to