EDIT: Ignore "system" in the title, I would not like it to display system icons, but infact the real icons for each file (that is, if the files have custom icons set for them, if they don't and just contain default Windows system icons then those would be displayed).
well I coded a fully functional listview control (using the API, not MFC), which was my for my recent release of my program.
anyways, the purpose of the listview control is to contain user supplied file data. it is an LVS_REPORT style listview, and I have a working dynamic popup menu with the options to add and remove files from the list. in version 1, the listview control does not use an imagelist, as in it doesn't display the icons for each file (small ones obviously) to the far left of each file entry.
what I would like to do in version 2 is add an imagelist that will display the small icon for each added file to the far left of each row.
I went searching through msdn and found the macros ListView_GetImageList and ListView_SetImageList. they appear to be (partially) what I am looking for, but when I take a look at their parameters, specifically HIMAGELIST, I am left clueless to the internal representation of this type. when I search msdn for HIMAGELIST, I get a bunch of irrelevant results, when really what I am looking for is a description of this type/structure. I know that I can get each added file's icon with SHGetFileInfo every time a new file is added, but I don't know where this icon data would be placed after that, basically what to do between SHGetFileInfo and ListView_SetImageList.
could anyone here please tell me a little bit about how I could go about this? I am not looking for code, but just some guidance since there doesn't seem to be a whole lot of referances to this available that do not involve MFC (I code C, and strictly C, thus MFC is a no go for me, at least for the moment).
any input is greatly appreciated. thank you in advance!