Share via


EditorControl.OnAppActivate Method

Notifies the component whenever the host application is activated or deactivated.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)

Syntax

'Declaration
Public Overrides Sub OnAppActivate ( _
    fActive As Integer, _
    dwOtherThreadID As UInteger _
)
public override void OnAppActivate(
    int fActive,
    uint dwOtherThreadID
)
public:
virtual void OnAppActivate(
    int fActive, 
    unsigned int dwOtherThreadID
) override
abstract OnAppActivate : 
        fActive:int * 
        dwOtherThreadID:uint32 -> unit  
override OnAppActivate : 
        fActive:int * 
        dwOtherThreadID:uint32 -> unit
public override function OnAppActivate(
    fActive : int, 
    dwOtherThreadID : uint
)

Parameters

  • fActive
    Type: Int32

    If true, the host application is being activated, otherwise it is being deactivated.

  • dwOtherThreadID
    Type: UInt32

    If the host application is being activated, the ID of the thread that owns the window being deactivated. If the host application is being deactivated, the ID of the thread owning the window being activated.

Implements

IOleComponent.OnAppActivate(Int32, UInt32)

Remarks

By default this method does nothing.

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

EditorControl Class

Microsoft.VisualStudio.Package Namespace