CDC *pDC;
pDC=GetDC();
CRect rect;
GetClientRect(&rect);
CBitmap wtj_bitmap;
CDC dcMemory;
wtj_bitmap.LoadBitmap(IDB_BITMAP2);
BITMAP bmInfo;
wtj_bitmap.GetObject(sizeof(bmInfo),&bmInfo);
dcMemory.CreateCompatibleDC(pDC);
dcMemory.FillSolidRect(&rect,RGB(255,0,0));
dcMemory.SelectObject(&wtj_bitmap);
// pDC->BitBlt(0,0,rect.Width(),rect.Height(),&dcMemory,0,0,SRCCOPY);
/* pDC->BitBlt(100,100,
bmInfo.bmWidth,bmInfo.bmHeight,
&dcMemory,0,0,SRCCOPY);*/
pDC->StretchBlt(0,0,
rect.Width(),rect.Height(),
&dcMemory,
0,0,
bmInfo.bmWidth,bmInfo.bmHeight,
SRCCOPY);
ReleaseDC(pDC);