Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use the API fonction EnumWindows
Message
 
To
22/04/2002 14:17:11
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00647739
Message ID:
00647751
Views:
11
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform