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
> 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
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.
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...