I want to set an image in the 3rd and 5th columns of my list control, however if I use the small image list the icon appears next to the 1st entry and not the one I want. Can anyone suggest what to do here.
Printable View
I want to set an image in the 3rd and 5th columns of my list control, however if I use the small image list the icon appears next to the 1st entry and not the one I want. Can anyone suggest what to do here.
Hi Trevor,
You could overcome your problem by using CListCtrl::SetItem member function to set the individual item's properties, rather than using CListCtrl::SetImageList.
Good Luck
... and you've set the style LVS_EX_SUBITEMIMAGES and your COMCTRL32 version is >= 4.7?
Then you should be able to set the item images in other columns via SetItem.
HTH, Jens