共用方式為


SingleTaskIdleManager.IOleComponent.OnAppActivate Method

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

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'宣告
Private Sub OnAppActivate ( _
    fActive As Integer, _
    dwOtherThreadID As UInteger _
) Implements IOleComponent.OnAppActivate
void IOleComponent.OnAppActivate(
    int fActive,
    uint dwOtherThreadID
)

Parameters

  • fActive
    Type: System.Int32
    true if the application is being activated, false if it is losing activation.
  • dwOtherThreadID
    Type: System.UInt32
    The identifier of the thread that owns the window.

Implements

IOleComponent.OnAppActivate(Int32, UInt32)

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.

.NET Framework Security

See Also

Reference

SingleTaskIdleManager Class

Microsoft.VisualStudio.Shell Namespace