I use the folow code to create a thumbnail for list control
HDC hDC=::GetDC(hWnd);
HDC pDC=::CreateCompatibleDC(hDC);
HBITMAP bm=::CreateCompatibleBitmap(hDC,THUMBNAIL_W,THUMBNAIL_H);
HBITMAP oldBmp=(HBITMAP)SelectObject(pDC,bm);
img.StretchBlt(pDC,rcBorder);
CBitmap bmp;
bmp.Attach(bm);
m_imgLst.Add(&bmp,RGB(0,0,0));
a big image is load, it is store in CImage as
CImage img;
but the thumbnail is black, nothing is drawn
the above code
img.StretchBlt(pDC,rcBorder);
doesn't do a thing.