Partager via


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

'Declaration
Sub OnAppActivate ( _
    fActive As Integer, _
    dwOtherThreadID As UInteger _
)
void OnAppActivate(
    int fActive,
    uint dwOtherThreadID
)
void OnAppActivate(
    [InAttribute] int fActive, 
    [InAttribute] unsigned int dwOtherThreadID
)
abstract OnAppActivate : 
        fActive:int * 
        dwOtherThreadID:uint32 -> unit
function OnAppActivate(
    fActive : int, 
    dwOtherThreadID : uint
)

Parameters

  • fActive
    Type: Int32

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

  • dwOtherThreadID
    Type: 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