Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DestroyWindow() API question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00841295
Message ID:
00841299
Vues:
18
This message has been marked as the solution to the initial question of the thread.
>Hi all,
>
>In the Remarks of the User32.DestroyWindow() API, it states:
>
>*"A thread cannot use DestroyWindow to destroy a window created by a different thread."
>
>Does this mean that a VFP application cannot destroy the window created by another VFP application? An example of my implementation using the Calculator as the test window. Code snippet as follows:
>
>* note: open the Calculator accessory
>declare integer FindWindow in win32api string @lpClassName, string @lpWindowName
>declare integer DestroyWindow in user32 integer hwnd
>
>local hWnd_
>hWnd_ = FindWindow(0,"Calculator")
>if hWnd_ > 0
>	wait window transform(hWnd_)
>	wait window transform(DestroyWindow(hWnd_)) && does not close the calculator!
>endif
>
>TIA.

Yep, that's what it means. Look at my FAQ#7773. It shows how to shut down another app.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform