Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
API function for closing other applications
Message
De
04/05/2000 09:26:02
 
 
À
04/05/2000 05:19:43
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00365986
Message ID:
00366048
Vues:
14
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform