Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is VFP On Top?
Message
From
26/08/2002 06:51:11
 
 
To
26/08/2002 06:23:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00693560
Message ID:
00693563
Views:
20
This message has been marked as a message which has helped to the initial question of the thread.
>Hi All
>
>Is there any way to know if (a) my VFP application is the foremost active window and (b) whether the screen saver is running i.e. my app is not currently the active output window?
>
>TIA
>
>Jos

Jos,

does this work for you
&& if not in vfp7
SET LIBRARY TO HOME()+"\foxtools.fll" && If FoxTools is in the Home directory.
&& end !vfp7
declare integer GetForegroundWindow in Win32API

HasFocus = (mainhwnd() == GetForegroundWindow())
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform