使用如下代码,为何不能完全删除CImageList中所有的图片for (int i = 0; i < m_myImageList.GetImageCount(); i++){m_myImageList.Remove(i);}
Remove会改变GetImageCount的结果, 你这个for循环相当凶险
0