Information générale
Catégorie:
Fonctions Windows API
Titre:
Closing an other '.exe'
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement