Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The Forms of Our Program Are Hiding
Message
De
05/01/2000 11:31:53
 
 
À
05/01/2000 10:46:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00313213
Message ID:
00313257
Vues:
36
>Greetings and Salutations!
>
>When running the VFP6 program I'm currently working on I notice that if another program is active the windows and frames of my program appear BEHIND the windows and frames of the program that was already up and running (and the title bar of my forms are greyed out). How can I have my program give focus to itself and run in front of any other program?
>

You can force your application to the top of the Windows context by a call to the ShowWindow Win32 API call. The following is an unsophisiticated starting point to use:

DECLARE INTEGER GetActiveWindow IN WIN32API
DECLARE INTEGER ShowWindow IN WIN32API INTEGER hWnd, INTEGER ShowWindowMode
=ShowWindow(GetActiveWindow(),5)
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
Répondre
Fil
Voir

Click here to load this message in the networking platform