Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Link to email
Message
From
07/03/1999 15:46:12
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00194055
Message ID:
00195039
Views:
23
>Calvin,
>
>You can use the Foxtools MainHWND() function instead of the FindWindow() function you are using.
>
>>DECLARE INTEGER FindWindow IN WIN32API ;
>> STRING cNull,STRING cWinName
>>RETURN ShellExecute(FindWindow(0, _SCREEN.caption),lcAction, lcLink, lcParms, SYS(2023), 1)

You can also use GetActiveWindow():

DECLARE INTEGER GetActiveWindow IN WIN32API
hWnd = GetActiveWindow()
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform