get thumnail images like windows explorer does

M

Martin Hey

hello to all,

can somebody tell me how to retrieve the thumbnail-images of files that are
shown in explorer?
if i want to get these images from image-files i can paint on a smaller dc
or call getthumbnailimage of the image. for use with office-files i found
the following ressource:
http://msdn2.microsoft.com/en-us/library/aa289172.aspx#sharept_topic7

but what about pdf or other files? i and i don't want to write a separate
method for every extension i can imagine.

is there any possibility to retrieve just the images windows-explorer shows
in thumbnail or preview view

thanks for every hint

Martin
 
G

Greg

hello to all,

can somebody tell me how to retrieve the thumbnail-images of files that are
shown in explorer?
if i want to get these images from image-files i can paint on a smaller dc
or call getthumbnailimage of the image. for use with office-files i found
the following ressource:http://msdn2.microsoft.com/en-us/library/aa289172.aspx#sharept_topic7

but what about pdf or other files? i and i don't want to write a separate
method for every extension i can imagine.

is there any possibility to retrieve just the images windows-explorer shows
in thumbnail or preview view

thanks for every hint

Martin

Hi Martin,

Have a look at the following codeproject artical:
http://www.codeproject.com/KB/files/fileicon.aspx

This should get you started.
Hope this helps,

Greg
 
M

Martin Hey

hi greg,

thanks for this hint. i think this may be a fallback solution because the
preview images are not shown but i can get the icons with this source code.

martin

hello to all,

can somebody tell me how to retrieve the thumbnail-images of files that
are
shown in explorer?
if i want to get these images from image-files i can paint on a smaller dc
or call getthumbnailimage of the image. for use with office-files i found
the following
ressource:http://msdn2.microsoft.com/en-us/library/aa289172.aspx#sharept_topic7

but what about pdf or other files? i and i don't want to write a separate
method for every extension i can imagine.

is there any possibility to retrieve just the images windows-explorer
shows
in thumbnail or preview view

thanks for every hint

Martin

Hi Martin,

Have a look at the following codeproject artical:
http://www.codeproject.com/KB/files/fileicon.aspx

This should get you started.
Hope this helps,

Greg
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top