Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detect switching between vfp-app and other applications
Message
 
À
11/02/2002 08:14:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00618245
Message ID:
00618281
Vues:
9
This message has been marked as a message which has helped to the initial question of the thread.
You could call in timer event a WINAPI function GetForegroundWindow() and compare a returned value with hWnd of main FoxPro window. Thus you can determine if your application is active or not.

>The Activate() and Deactivate() methods don't (seem to) work when switching between the vfp-application and other applications. I want to do a certain action when the user clicks outside my app, and I want to do another action when the user re-enters my app.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform