🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #14960

How to preview custom file format in Explorer

#14960
From: Joseph F. Muscarella
Date: Wed, 23 Jul 2003 20:28
16 lines
1701 bytes
My application creates files of a custom format (list of shapes, etc.) that
it renders on-screen as an image.   Think of AutoCAD files being displayed
as a drawing.

I want to have Windows Explorer display the file's image in the preview when
a user selects a file.   Since the file is not a BMP, GIF or JPG, Windows
doesn't know how to render it.   Is there some way to hook my rendering
engine into Windows so my files can be previewed?

As a possibly related question, how can I customize the File Open dialog to
get a similar preview?   If I have to build a custom open dialog, how do I
get it to look/feel like the built-in Windows dialogs?

Thanks for any and all assistance.

Joe
Technical Details
Message-ID: <3f1eeff8@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-05!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!skynet.be!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,e95529f2cb763b0f,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-07-23 13:41:16 PST
From: "Joseph F. Muscarella" <joe@infosight-nospam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: How to preview custom file format in Explorer
Date: Wed, 23 Jul 2003 16:28:31 -0400
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 216.201.4.180
Message-ID: <3f1eeff8@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1058992120 216.201.4.180 (23 Jul 2003 13:28:40 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-05!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!skynet.be!skynet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail