19,473
社区成员




PicDC.CreateCompatibleDC(pDC);
hBitmap = CreateBitmap( pPicInfo->BmpInfoHeader.biWidth, pPicInfo->BmpInfoHeader.biHeight, pPicInfo->BmpInfoHeader.biPlanes,pPicInfo->BmpInfoHeader.biBitCount,pPicInfo->PicData);
if(NULL == hBitmap)
MessageBox(L"Create hBitmap object Fail!",NULL,MB_OK);
PicDC.SelectObject(hBitmap);
pDC->BitBlt(10,10,pPicInfo->BmpInfoHeader.biWidth,pPicInfo->BmpInfoHeader.biHeight,&PicDC,0,0,SRCCOPY);
DeleteObject(hBitmap);
PicDC.DeleteDC();
hBitmap = CreateBitmap( pPicInfo->BmpInfoHeader.biWidth, pPicInfo->BmpInfoHeader.biHeight, pPicInfo->BmpInfoHeader.biPlanes,pPicInfo->BmpInfoHeader.biBitCount,pPicInfo->PicData);