IWinShellExecuteInfo.ShowCommand

Syntax

ShowCommand: ShowWindowCommand;

Description

The ShowCommand property determines state of the opened file or application's window.

Example

Sub Main;

Var

Info: IWinShellExecuteInfo;

Begin

Info := New WinShellExecuteInfo.Create;

Info.Directory := "C:\temp1";

Info.File := "catalog.xls";

Info.ShowCommand := ShowWindowCommand.ShowMinimized;

WinApplication.ShellExecute(Info);

End Sub Main;

After executing the example the catalog.xls file opens from the C:\temp directory. Program window is minimized to the taskbar.

See also:

IWinShellExecuteInfo