IOleComponent.OnAppActivate Method

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

Namespace:  Microsoft.VisualStudio.OLE.Interop
Assembly:  Microsoft.VisualStudio.OLE.Interop (in Microsoft.VisualStudio.OLE.Interop.dll)

Syntax

'Declaração
Sub OnAppActivate ( _
    fActive As Integer, _
    dwOtherThreadID As UInteger _
)
void 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 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.

.NET Framework Security

See Also

Reference

IOleComponent Interface

Microsoft.VisualStudio.OLE.Interop Namespace