m_imagelist.Create(THUMWIDTH, THUMHEIGHT, ILC_COLOR32, 0, 1);BOOL Create( int cx, int cy, UINT nFlags, int nInitial, int nGrow );这两个参数到底是什么意思,一直不懂:
nInitial
nGrow 
我试着设不同的值,没发现有什么区别,那位大虾能否具体解释一下,谢谢!

解决方案 »

  1.   

    这两个值从程序的界面效果上是看不出来的,主要是为了提高CImageList的使用效率而使用的,nInitial表示初始化的时候就预留这么个空间,而nGrow则表示当空间不够的时候,每次新增空间的时候以nGrow的速度递增
      

  2.   

    nInitial
    Number of images that the image list initially contains.
    image list 初始含有的image的数量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.
    nGrow 当需要改变列表大小时,允许扩大到的image数量。