OleComponent.IOleComponent.OnAppActivate Method
Notify component when the host application gains or loses activation. Simply calls through to OnAppActivateCore.
Namespace: Microsoft.VisualStudio.PlatformUI.OleComponentSupport
Assembly: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
'Déclaration
Private Sub OnAppActivate ( _
fActive As Integer, _
dwOtherThreadID As UInteger _
) Implements IOleComponent.OnAppActivate
'Utilisation
Dim instance As OleComponent
Dim fActive As Integer
Dim dwOtherThreadID As UInteger
CType(instance, IOleComponent).OnAppActivate(fActive, _
dwOtherThreadID)
void IOleComponent.OnAppActivate(
int fActive,
uint dwOtherThreadID
)
private:
virtual void OnAppActivate(
int fActive,
unsigned int dwOtherThreadID
) sealed = IOleComponent::OnAppActivate
private abstract OnAppActivate :
fActive:int *
dwOtherThreadID:uint32 -> unit
private override OnAppActivate :
fActive:int *
dwOtherThreadID:uint32 -> unit
JScript does not support explicit interface implementations.
Parameters
- fActive
Type: System.Int32
If TURE (1), the host app is being activated, if FALSE (0) the host app is being deactivated.
- dwOtherThreadID
Type: System.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
IOleComponent.OnAppActivate(Int32, UInt32)
Remarks
This method is not called when both the window being activated and the one being deactivated belong to the host app.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.PlatformUI.OleComponentSupport Namespace