Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Switching between Windows apps
Message
De
28/10/1998 15:32:57
 
 
À
28/10/1998 15:25:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00151887
Message ID:
00151897
Vues:
19
>I'm looking for a way for my FoxPro app to detect that the user has switched to another Windows app, desktop or whatever. Also, detect when the FoxPro app becomes the active app again.
>
>I'll need to have FoxPro trigger a function in both events.
>
>Any suggestions ?
>
>- Werner

Add timer with following timer event:
declare INTEGER GetActiveWindow in Win32Api
nActivehandle=GetActiveWindow()
if nActivehandle=0
=messagebox("Something else is active")
else
=messagebox("VFP is active")
endif
clear dlls
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform