Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detect switching between vfp-app and other applications
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00618245
Message ID:
00618299
Vues:
9
>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.
>

You can have multiple hWnds associated with a VFP app; you need to use the ProcessID instead. See FAQ 674.

>>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform