Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
API function for closing other applications
Message
From
04/05/2000 09:26:02
 
 
To
04/05/2000 05:19:43
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00365986
Message ID:
00366048
Views:
16
>Clarissa,
>
>I'm not sure this will help in your case, but you might try the following:
>
>SET LIBRARY TO FOXTOOLS
>
>x=regfn("FindWindow","CC","I")
>z=callfn(x,0, cWindowTitle)
>y=regfn("PostMessage","IIIL","I")
>=callfn(Y,z,274,61536,0)
>
>If the application has a window with a unique caption, you can find that window by its caption (cWindowsTitle variable) and send a message to that window that it has to close.
>

Walter, it's no longer necessarry to use FoxTools to register these functions. The API Functions FindWindow and SendMessage can be declared and used directly. A seaerch here on the function names will turn up sample code.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform