Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

SHGetFileInfo only returns the commonly used icon

$
0
0

Hello,

i am writing some kind of browser similar to the Explorer in Windows. I can get the correct icons via SHGetFileInfo or SHGetStockIconInfo except for one and that is the desktop folder icon.

It seems the icons ( or lets say handles ) you get from the file info structure are the common used icons. When you right click in the Windows Explorer on a file or folder and look under propertys you can see the icon on the first two pages. The Problem is that on the /Users/Desktop folder these icons are not the same, and since the SHGetFileInfo function can only retrieve the Icon from the second tab ( "common used" ) you can only get the blue Desktop Window icon.

Now my question is how can i get the desktop folder icon that is in the user directory, you know the icon looks like the stock folder with the blue window Icon stuffed in it. Is the only way searching for the index in the dll and then use LoadIcon/LoadImage or is there a possibility to get it via a SHGet function ?

regards

coOKie


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>