I am trying to use the icon images that are retrieved from the ShGetFileInfo API call. In this way, for my file explorer I can use all of the windows default images without having to extract them and then place them into separate files. I would appreciate it if anyone could let me know if this is possible? Also, is it possible to use an ImageList collection with the TreeView?
Thanks.
Martin Reich
Update:
I have created a set of classes that will place the Shell32.dll icons (or from any other file the user wishes) into an images directory below the executable. I then point DefaultImageSrc to the file in the images directory. This works fine except for the 'light yellow' color in the icons. When the icon is saved to a file, the 'light yellow' is being transformed into white. If someone can help with his issue, I will post the code for others to use.
Update 2:
I have gotten the correct colors working. Using an ImageList, I put the icon into the ImageList and then save the icon from the ImageList instance. This process handles all of the color issues. If someone would like this code just let me know and I will send it on.
Thanks.
Martin Reich
Update:
I have created a set of classes that will place the Shell32.dll icons (or from any other file the user wishes) into an images directory below the executable. I then point DefaultImageSrc to the file in the images directory. This works fine except for the 'light yellow' color in the icons. When the icon is saved to a file, the 'light yellow' is being transformed into white. If someone can help with his issue, I will post the code for others to use.
Update 2:
I have gotten the correct colors working. Using an ImageList, I put the icon into the ImageList and then save the icon from the ImageList instance. This process handles all of the color issues. If someone would like this code just let me know and I will send it on.