Dale Fugier
2005-07-15 23:23:28 UTC
I am trying to figure out how to set, replace and remove an imagelist for a
CListCtrl at runtime.
If, during the creation of the CListCtrl, I set an imagelist, using
SetImageList(), I am able to remove it using RemoveImageList(). But, the
list control appears to still leave some space between the edge of the
control and text items for an image of some kind (in report mode). Also,
after removing the image, I am not able to re-set it.
If I do not set an imagelist when creating the control, the text items
appear next to the left edge of the control (in report mode). But, I am not
able to set one after the fact.
Any help would really be appreciated.
Thanks in advance,
-Dale
CListCtrl at runtime.
If, during the creation of the CListCtrl, I set an imagelist, using
SetImageList(), I am able to remove it using RemoveImageList(). But, the
list control appears to still leave some space between the edge of the
control and text items for an image of some kind (in report mode). Also,
after removing the image, I am not able to re-set it.
If I do not set an imagelist when creating the control, the text items
appear next to the left edge of the control (in report mode). But, I am not
able to set one after the fact.
Any help would really be appreciated.
Thanks in advance,
-Dale