General information
Category:
Windows API functions
It seems that the OleCreatePictureIndirect(@PictDesc, @iid, 1, @IPic) which I assume will populate the IPic reference variable is null after the call. The PictDesc variable seems to contain a few high ascii characters. If I can't get the icon into a treeview control via the imagelist, is there an easy way to simply draw the icon elsewhere, like in a picture control?
>>I am still trying to get the basics working. Even using the posted code, I am getting nowhere. At least this is not generating the C00000005 errors.
>>What am I missing? I am passing the file path, the icon index, and a reference to the imagelist.
>
>I'm having some of my own troubles here as well. I can and have been able to use Alexander's code to create icon files from the handle. However, I've been playing around with populating a ImageList, which seems to work fine. The problem is in associating the ImageList with a ListView. Don't know whether or not it's me or something to do with the nature of the image created. Is this where you're having problems too?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only