The Design of Software (CLOSED)

A public forum for discussing the design of software, from the user interface to the code architecture. Now closed.

The "Design of Software" discussion group has been merged with the main Joel on Software discussion group.

The archives will remain online indefinitely.

Thumbnails for non-image files

For data files (such as Cad) which are not image files  it would be nice to embedd a small jpeg in the file and have explorer show that as a thumbnail.

Is this available in XP/Vista?
Martin Send private email
Wednesday, February 07, 2007
 
 
It's called a thumbnail shell extension. If you can't find one for your particular file type, you can write your own. Here's an article describing the process:
http://www.codeproject.com/shell/thumbextract.asp
Mark Ransom Send private email
Wednesday, February 07, 2007
 
 
Thanks that looks like a useful starting point.
Martin Send private email
Wednesday, February 07, 2007
 
 
The Thumbnail APIs have been streamlined in Vista[1], though the method described in Mark's link should still work and would be backwards compatible.

[1] http://msdn2.microsoft.com/en-us/library/aa969353.aspx
Chris Altmann
Wednesday, February 07, 2007
 
 
Thanks, the original method was a bit tricky because my app doesn't do serialize.
It would be ideal if I could just tack a bmp onto the front of my data file and have explorer read that and have my app ignore it but it looks like I can do something with this API.
Martin Send private email
Thursday, February 08, 2007
 
 
Actually, it might work the way you want. I think it's all driven by the file extension, so all you should have to do is wire the registry to call the BMP thumbnailer for your extension.
Mark Ransom Send private email
Thursday, February 08, 2007
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz