选一副位图;
CBitmap bitmap;
bitmap.CreateBitmap();
建立兼容DC
CDC dcCompatibleDC();
CDC::CreateCompatibleDC(CDC* pDC);
DC选入位图
dcCompatible.SelecObject(&bitmap)
拷贝图片到Device Context;
pDC->BitBlt();
WM_ERASEBKGND消息的响应函数OnEraseBkgnd中改变位图;
CBitmap bitmap;
bitmap.CreateBitmap();
CDC dcComptible();
dcCompitle.CreateCompitableDC(pDC);
dcCompatible.SelectObject();
CRect rect;
GetClient(&rect);
pDC->BitBlt();//兼容DC拷贝到目的DC