>Hello,
>
>I have seen the last variable in the ShellExecute command (nShowCmd) be a 1 or a 0. I use 1 and most of my users for example get Word open in the maximized view. Some users get just a 'button' on the windows status bar. I just noticed that most of the example use "0" in the API section. What exactly does this variable do??
>
>Thanks,
>
>Kevin
>***********************************************
>DECLARE INTEGER ShellExecute IN "Shell32.dll" ;
> INTEGER hwnd, ;
> STRING lpVerb, ;
> STRING lpFile, ;
> STRING lpParameters, ;
> STRING lpDirectory, ;
> LONG nShowCmd
Kevin,
It controls the Window state of the application. Here are the constants
#define SW_HIDE 0
#define SW_SHOWNORMAL 1
#define SW_NORMAL 1
#define SW_SHOWMINIMIZED 2
#define SW_SHOWMAXIMIZED 3
#define SW_MAXIMIZE 3
#define SW_SHOWNOACTIVATE 4
#define SW_SHOW 5
#define SW_MINIMIZE 6
#define SW_SHOWMINNOACTIVE 7
#define SW_SHOWNA 8
#define SW_RESTORE 9
#define SW_SHOWDEFAULT 10
#define SW_FORCEMINIMIZE 11
#define SW_MAX 11
The description of these can be found in platform SDK under either ShowWindow() or ShellExecute().
George
Ubi caritas et amor, deus ibi est