Can anyone tell me how i can assign icons in an HIMAGELIST to specific items in a listview control? Thanks in advance.
Can anyone tell me how i can assign icons in an HIMAGELIST to specific items in a listview control? Thanks in advance.
Here's an old, tired example.
Here's an msdn example.
At its simplest, associate the imagelist with the listview with ListView_SetImageList
and use LVM_INSERTITEM to associate the image index with a specific listview item.
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.
Thanks Ken, you answered my question perfectly. Only that made me realize that I had another problem. I was originally getting the icons from Shel32.dll, but after I got the icons to display i realized these were the wrong icons. The icons i'm trying to get are the file type icons, for example the can and paintbrushes for a bitmap. Can anyone tell me where i can find these files?
It's too bad that stupidity isn't painful
--Anton Szandor LaVey
I'm not sure but I imagine those resources would be in mspaint.exe.