Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling CreateProcess() from a modal form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Network:
Windows XP
Divers
Thread ID:
01362241
Message ID:
01362504
Vues:
10
My approach would to to hide the application:

DECLARE Integer ShowWindow IN User32 INTEGER lnHwnd, INTEGER lnOption
ShowWindow._screen.hwnd,0)

and after the other process is terminated show it again:

ShowWindow._screen.hwnd,3)



>Hi All,
>
>Using VFP6
>I'm calling an external program from a modal form using the API CreateProcess() function using the technique described here http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q191/5/84.asp&NoWebContent=1 to cause my app to wait for the external executable to finish. The external executable does have a UI with a window displayed in front of my app.
>
>The problem is that if I switch back to my app before closing the external program, the modal form no longer has the same behaviour in that another form can be activated. The problem here is that the modal form's calling form occupies the entire screen and its "movable" property is set to .F. so the modal form "disappears" behind the calling form and cannot be reactivated. From a user's perspective, the app is hung.
>
>Is there some way around this behaviour ? Even making my app unavailable while the external program executes would be OK. The user should not be switching back to it anyway.
>
>Thanks,
>Carl
Christian Isberner
Software Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform