我的程序总是显示位图的一部分,我得bmp是480×480的,代码如下:
pKeyImageList = new CImageList;
pKeyImageList->Create(220,200,ILC_COLOR24|ILC_MASK,0,1);
m_keyFrameCtrl.SetImageList(pKeyImageList, LVSIL_NORMAL);。。     HBITMAP hBitmap;
CBitmap *pBitmap;
pBitmap=new CBitmap;
int l=0;index=0;

char FilePathName[200] = "E:\\myResearch\\myprogram\\mpegVideo\\binkey1.bmp";
hBitmap=(HBITMAP)LoadImage(NULL,FilePathName,IMAGE_BITMAP,0,0,LR_LOADFROMFILE);
pBitmap->Attach (hBitmap);
pKeyImageList->Add (pBitmap,RGB(0,0,0));
m_keyFrameCtrl.InsertItem(index,"binkey1000.bmp",index);