ShowCommand: ShowWindowCommand;
The ShowCommand property determines state of the opened file or application's window.
Executing the example requires the file D:\Work\Files\catalog.xls.
Sub UserProc;
Var
Info: IWinShellExecuteInfo;
Begin
Info := New WinShellExecuteInfo.Create;
Info.Directory := "D:\Work\Files";
Info.File := "catalog.xls";
Info.ShowCommand := ShowWindowCommand.ShowMinimized;
WinApplication.ShellExecute(Info);
End Sub UserProc;
After executing the example the specified file is opened. Program window is minimized to the taskbar.
See also: