Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use the API fonction EnumWindows
Message
 
À
22/04/2002 14:17:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00647739
Message ID:
00647751
Vues:
12
>how to use the API fonction EnumWindows to know the top level window ?

You can't in VFP because it requires a callback. Instead, you might want to look at my SpyFoxFox program in the download section. It enumerates all Windows, and that code can be fairly easily modified to return only top-level windows.

If you're only interested in the currently active window then
DECLARE INTEGER GetActiveWindow IN Win32API
lnhWnd = GetActiveWindow()
Will give you the window handle.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform