OleComponent.IOleComponent.OnAppActivate(Int32, UInt32) Méthode

Définition

Notifie le composant lorsque l’application hôte gagne ou perd l’activation. Appelle simplement via OnAppActivateCore(Int32, UInt32) .

 virtual void Microsoft.VisualStudio.OLE.Interop.IOleComponent.OnAppActivate(int fActive, System::UInt32 dwOtherThreadID) = Microsoft::VisualStudio::OLE::Interop::IOleComponent::OnAppActivate;
 virtual void Microsoft.VisualStudio.OLE.Interop.IOleComponent.OnAppActivate(int fActive, unsigned int dwOtherThreadID) = Microsoft::VisualStudio::OLE::Interop::IOleComponent::OnAppActivate;
void Microsoft.VisualStudio.OLE.Interop.IOleComponent.OnAppActivate(int fActive, unsigned int dwOtherThreadID);
void IOleComponent.OnAppActivate (int fActive, uint dwOtherThreadID);
abstract member Microsoft.VisualStudio.OLE.Interop.IOleComponent.OnAppActivate : int * uint32 -> unit
override this.Microsoft.VisualStudio.OLE.Interop.IOleComponent.OnAppActivate : int * uint32 -> unit
Sub OnAppActivate (fActive As Integer, dwOtherThreadID As UInteger) Implements IOleComponent.OnAppActivate

Paramètres

fActive
Int32

Si la valeur est TRUE (1), l'application hôte est activée ; si la valeur est FALSE (0), elle est désactivée.

dwOtherThreadID
UInt32

Si fActive est TRUE (1), il s'agit de l'ID du thread possédant la fenêtre désactivée. Si fActive est FALSE (0), il s'agit de l'ID du thread possédant la fenêtre activée.

Implémente

Remarques

Cette méthode n’est pas appelée lorsque la fenêtre en cours d’activation et celle qui est désactivée appartiennent à l’application hôte.

S’applique à