Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ShowWindow
Message
De
20/10/1999 09:18:42
 
 
À
20/10/1999 06:44:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00278675
Message ID:
00278757
Vues:
18
>I am using WIN32API to find out if the application is all ready loaded then using ShowWindow to show the window. I get inconsistant results on showing the window. Sometimes it is shown and sometimes it is only partialy painted. I have tried the following with 3, 5 and 6:
>
>

>LPARAMETER lnHWND
>
>DECLARE INTEGER ShowWindow IN Win32API;
> INTEGER hwnd, INTEGER dflag
>
>= ShowWindow(lnHWND, 3)
>
><\PRE>
>

3 should be correct (SW_SHOWMAXIMIZED). You might to make two calls - the first with 3, to be followed immediately by 5 (SW_SHOW) - IOW, first maximize, then force the activation, even though SW_SHOWMAXIMIZED by itself should be enough. 6 would be wrong IAC, since that would minimze.

The MSDN documents what the named values are, and the specifc integer values for each name can be found in the WINUSER.H include file in VC++

>Does anyone know the syntax for ShowWindow to maximize the window and bring it to the top?
>
>Thanks
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