Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing an other '.exe'
Message
De
04/03/2003 15:41:20
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Closing an other '.exe'
Divers
Thread ID:
00761170
Message ID:
00761170
Vues:
66
Hi All,

We have a executable program that acts as a menu system. Users will dblclick on a node in the treeview and the associated executable program will open. I use: SHOWWINDOW(lnhndl, sw_normal).

When the user decides to close the Menu program. I want to close all executable programs that were opened by the menu program. I use: SendMessage(lnHndl, WM_CLOSE, 0, 0). This all works great.

To find the correct ‘lnHndl’, I use ‘Is_Run32’ found here in the downloads. This requires passing the windows title. But we have users the like to name their other files the same as the executable programs being opened.

How can I avoid closing those windows instead of the correct one?
How do I know if "Time Sheet" is the title of "Time Sheet.doc" or "Hrsentry.exe"? I want to close the 2nd. Not the 1st.

FYI: VFP6 SP5

TIA
Mike
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform