>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?
>
>ThanksEMail: 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