Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
API_APPRUN
Message
De
19/09/2000 20:24:40
 
 
À
19/09/2000 16:15:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00418261
Message ID:
00418328
Vues:
23
>I'm using the api_apprun class to launch Wordpad and wait. I've noticed that when the Wordpad form is moved, it leaves it's last image on the VFP form behind it. I understand it's because the Wordpad
>form is in a "modal" state, but is there anything that can be done before launch to prevent this.
>

The obvious way would be to minimize VFP just before calling LaunchAppAndWait(), and restore it on return. FWIW, I'd suspect a video driver problem, since it does not do this on either my Win2K or WinME box here with Wordpad.

Under NT or 2K you can change the lpDesktop member of the STARTUPINFO structure to point to a null string rather than using a null pointer; this will tell Windows that the new process should not inherit the parent app's desktop, and will request a new Desktop environment to be created.

Also, Wordpad is not running modal; all I've done is told VFP to stop processing code until the process object launched for Wordpad is signalled, indicating that the process has terminated, or VFP is brought to the foreground and the user presses escape (it checks INKEY() periodically if the wait for the process object times out.) You can launch other apps, or even leave Wordpad running and reactivate VFP by pressing Escape with VFP in the foreground.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform