Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DestroyWindow() doesn't seem to work
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00784075
Message ID:
00784100
Vues:
12
Thanks Anatoliy, can I get all the CONSTANT names from your site?

Thanks
Kev

>The DestroyWindow function destroys the specified window. The function sends WM_DESTROY and WM_NCDESTROY messages to the window to deactivate it and remove the keyboard focus from it.
>
>There is nothing can be done if that window just chooses to ignore those messages.
>
>For closing another application from within a FoxPro program -- if window handle for this application is available -- try this:
>
>= PostMessage(hWindow, WM_SYSCOMMAND, SC_CLOSE, 0)
>
>or this
>
>= PostMessage(hWindow, WM_QUIT, 0,0)
>
>The first one works better.
>
>If neither of those helped, then try the last resort: obtain handle to the process and call TerminateProcess, or with handle to the thread call the TerminateThread.
>
>The TerminateProcess does not care if the application finished its tasks in a proper manner.
>
>Check FoxPro sample code (members area):
>Terminating all running applications from the VFP
>http://www.news2news.com/vfp/?example=243&function=247
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform