前提:m_list是一个关联ListCtrl控件的变量。
假设ListCtrl有5个Item
我们都知道:m_list.DeleteItem(0);之后,后面的Item会自动前移
但是同样的CImageList的Remove()方法也是同样的效果。
All items following nImage now move down one position. For example, if an image list contains two items, deleting the first item will cause the remaining item to now be in the first position. nImage=0 for the item in the first position.
但是我把一个CImageList的变量tImageList和该m_list绑定时,再删除某一Item时,tImageList中对应IMAGE 却没有被删除。
探讨了CImageList的Remove方法与ListCtrl控件DeleteItem方法在使用过程中的不同步现象。当从ListCtrl中删除项时,CImageList中的相应图像并未随之删除。
2841

被折叠的 条评论
为什么被折叠?



