473,323 Members | 1,560 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

get thumnail images like windows explorer does

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/lib...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
Jun 27 '08 #1
2 2107
On Apr 14, 11:49*am, "Martin Hey" <martin...@kaffeeschluerfer.com>
wrote:
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/lib...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

Jun 27 '08 #2
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

"Greg" <gc*****@gmail.comschrieb im Newsbeitrag
news:59**********************************@a22g2000 hsc.googlegroups.com...
On Apr 14, 11:49 am, "Martin Hey" <martin...@kaffeeschluerfer.com>
wrote:
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/lib...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

Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Ben Long | last post by:
Hi All, A partner of mine has been charged with identifying a performance / load problem currently experienced on one of our websites. I'm thinking it may be a combination of HTML formatting...
15
by: Jameson | last post by:
Happy New Year, Everyone! I am trying to figure out how to display a bunch of images (mainly JPEGs, but possibly a few GIFs and PNGs as well) that are stored in a local directory on the system....
5
by: John | last post by:
I get a 'divide by zero' exception when I scroll in a subdirectory of 'My Pictures'. This subdirectory is full of .ico, .bmp, .png files that I use for button images in my Windows Forms projects. ...
1
by: reidarT | last post by:
I have oppened a solution in Vb.net with an image folder. When I have opened vb.net and then adds an image to the image folder, it is not updated. I have to strt vb.net all over. Am I missing...
3
by: indhu | last post by:
hi all, i have problem in displaying image in my Picture column. even though i ve inserted the OLE unbound image control in the form Actually, images are stored in a folder. i have to fetch...
1
by: =?Utf-8?B?TWFya3VzIFNjaC4=?= | last post by:
Hello, i'm seeking for a Favorites and Shortcut image for a TreeView Control. (The Shortcut image should be combined with the object image with DrawImageUnscaled) They should look like in...
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: List of autostart locations Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list all the autostart locations for windows? Ans: Here is...
5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.