nGrow 
Number of images by which the image list can grow when the system needs to resize the list to make room for new images. This parameter represents the number of new images the resized image list can contain.看不懂!!!还有,在msdn中的crMask参数是这样描述的
Color used to generate a mask. Each pixel of this color in the specified bitmap is changed to black, and the corresponding bit in the mask is set to one.我想是不是msdn错了,应该是转换成透明色才对啊,可它却说转换成黑色.最后一句是什么意思?------------and the corresponding bit in the mask is set to one.

解决方案 »

  1.   

    CImageList m_il;
    m_il.Create(XXX_COLOR24, 4, 2);
    当你加到超过4个的时候m_il扩充容量为4 + 2个,再不够的时候仍然递加2个,要注意,这个时候CImageList会分配一个临时对象,然后复制对象,当ImageList中对象很多而且很大的时候,这个操作要巨大的内存,而且动作非常慢。
      

  2.   

    Color used to generate a mask. Each pixel of this color in the specified bitmap is changed to black, and the corresponding bit in the mask is set to one.我想是不是msdn错了,应该是转换成透明色才对啊,可它却说转换成黑色.最后一句是什么意思?------------and the corresponding bit in the mask is set to one.没错呀。
    建议你看看:
    http://www.codeproject.com/bitmap/gditutorial.asp