Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Closing other applications from Visual Foxpro
Message
 
To
18/12/2002 16:16:09
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00734244
Message ID:
00734250
Views:
16
>Anyone know how to close one VFP application from another? I've tried using FindWindow() to get the other application's hWindow and then DestroyWindow() to close it, and although I'm getting a valid hWindow for the other app DestroyWindow() fails to close it.
>
>Thanks for any help!

The call is to SendMessage() or PostMessage(), passing the window handle and the WM_CLOSE message. There's an FAQ on the subject here.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform