CBitmap bBitmap;
CBitmap *OldBmp;
bBitmap.LoadBitmap(IDB_BITMAP1);
CDC tempDC;
tempDC.CreateCompatibleDC(&dc);
OldBmp=tempDC.SelectObject(&bBitmap);
BITMAP bitmap;
bBitmap.GetBitmap(&bitmap);
CRect rect;
GetClientRect(&rect);
//dc.BitBlt(0,0,rect.Width(),rect.Height(),&tempDC,11,0,SRCCOPY);
dc.StretchBlt(0,0,rect.Width(),rect.Height(),&tempDC,0,0,bitmap.bmWidth,bitmap.bmHeight,SRCCOPY);
dc.SelectObject(&OldBmp);
bBitmap.DeleteObject();
bitmap.bmWidth
bitmap.bmHeight就是位图的宽和高,你通过=(HBITMAP)LoadImage得到的位图一样适用。