Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ShellExecute 'Windows picture and Fax viewer' - How?

98 views
Skip to first unread message

Marcus Holz

unread,
Dec 14, 2005, 9:06:42 AM12/14/05
to
Hi All

I need to call the Windows internal viewer for pictures.

I am only displaying a small version of the original pic in my app. On
DblClick I want to ShellExecute(PChar(MyFileandDirectory)) to the picture
and display it in large...

What is the ShellExecute call for that...

TIA

Marcus


Magnus

unread,
Dec 14, 2005, 9:25:25 AM12/14/05
to
Marcus Holz wrote:

> I am only displaying a small version of the original pic in my app. On
> DblClick I want to ShellExecute(PChar(MyFileandDirectory)) to the picture
> and display it in large...
>
> What is the ShellExecute call for that...

ShellExecute(Mainform.handle, 'open', PChar(YourDirectoryAndFile), nil,
nil, SW_SHOWNORMAL)


--
Magnus

Eddie Shipman

unread,
Dec 14, 2005, 10:02:21 AM12/14/05
to
In article <43a026f3$1...@newsgroups.borland.com>, mar...@sytec.com.sg
says...
Try this:

var
FFileName: String;
begin
FFileName := 'c:\ff.gif';
ShellExecute(
Handle,
PChar('open'),
PChar('rundll32.exe'),
PChar( 'C:\WINNT\System32\shimgvw.dll,ImageView_Fullscreen ' +
FFileName),
nil,
SW_NORMAL);
end;


Note that you can use the ImageView_PrintTo function to print the image,
too.

Marcus Holz

unread,
Dec 14, 2005, 11:54:11 AM12/14/05
to
Veery niiice.... :)

Thank you very much guys - both solutions work well...

Regards from Singapore

Marcus


"Marcus Holz" <mar...@sytec.com.sg> wrote in message
news:43a026f3$1...@newsgroups.borland.com...

0 new messages