最新回复
你看看这段代码
CBitmap bmp;
CDC dcMemory;
CBitmap* pOldBitmap;
BITMAP bmpInfo;
BOOL ret;
dcMemory.CreateCompatibleDC(pdc);
bmp.LoadBitmap(nID);
bmp.GetBitmap(&bmpInfo);
pOldBitmap = dcMemory.SelectObject(&bmp);
ret = pdc->BitBlt(iX, iY, bmpInfo.bmWidth, bmpInfo.bmHeight, &dcMemory, 0, 0, SRCCOPY);
dcMemory.SelectObject(pOldBitmap);
bmp.DeleteObject();
dcMemory.DeleteDC();
详情
回复
发表于 2008-7-3 11:15
| |
|
|
| |
|
|
此帖出自WindowsCE论坛
| ||
|
||
EEWorld Datasheet 技术支持