有关 CListCtrl和CImageList的总结

来源:互联网 发布:ios6好用软件 编辑:程序博客网 时间:2024/05/17 02:58

前提: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 却没有被删除。

 

 

原创粉丝点击