16,472
社区成员
发帖
与我相关
我的任务
分享
CDC memoryDC;
CBitmap tempBmp;
BITMAP bm;
tempBmp.LoadBitmap(IDB_LAMPRIGHT_DIE);
memoryDC.CreateCompatibleDC(pDC);
tempBmp.GetBitmap(&bm);
CBitmap *pOldBitmap = memoryDC.SelectObject(&tempBmp);
pDC->TransparentBlt(10, 10, bm.bmWidth, bm.bmHeight, &memoryDC, 0, 0, bm.bmWidth, bm.bmHeight,RGB(255, 255, 255));
//释放略