Dear all:

I am trying to find a way to copy and individual image from a CImageList to a CBitmap object,

and refer http://www.codeguru.com/forum/archiv.../t-257564.html

I success do this work.

But I have another problem....Orz.

Some icons of file like .rar or .zip file can not be resized. As below

CImageList *mm_imglist;
mm_imglist = m_pList->GetImageList(LVSIL_SMALL);
IMAGEINFO imageinfo;
mm_imglist->GetImageInfo(1, &imageinfo);
CDC dcMem;
dcMem.CreateCompatibleDC (&dc);
CRect rect (imageinfo.rcImage);
CBitmap bmp;
bmp.CreateCompatibleBitmap (&dc, 100, 100);
CBitmap* pBmpOld = dcMem.SelectObject (&bmp);
mm_imglist->DrawIndirect (&dcMem, rItem.iImage, CPoint (0, 0), CSize (100, 100), CPoint (0, 0));
dc.BitBlt(50,0,100,100,&dcMem,0,0,SRCCOPY);

Some Icons show as original size not size 100*100. I check these files that show original size

icon and find several diference icons are included in these files.

Please help me.....thanks all.