Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Closing other applications from Visual Foxpro
Message
From
18/12/2002 18:10:47
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00734244
Message ID:
00734317
Views:
14
Thanks George! That was the answer I needed! Next time I'll check the FAQ first ;-)

>>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.
"The most beautiful experience we can have is the mysterious ; it is the fundamental emotion which stands at the cradle of true art and true science." - Albert Einstein
Previous
Reply
Map
View

Click here to load this message in the networking platform