CreateDIBitmap:DIB转DDB。 HBITMAP CECreateDIBitmap(HDC hdc, const BITMAPINFOHEADER *pbmih, DWORD fdwInit, const VOID *pBits, const BITMAPINFO *pbmi, UINT fuUsage) { HBITMAP hBitmap; HGDIOBJ hOldBmp; HDC hdcMem; if (hdc) hBitmap = CreateCompatibleBitmap(hdc, pbmih->biWidth, pbmih->biHeight); else hBitmap = CreateBitmap(pbmih->biWidth, pbmih->biHeight, 1, 1, NULL); if (fdwInit == /*CBM_INIT*/0x04L) { hdcMem = CreateCompatibleDC(hdc); hOldBmp = SelectObject(hdcMem, hBitmap); SetDIBitsToDevice(hdcMem, 0, 0, pbmih->biWidth, pbmih->biHeight, 0, 0, 0, pbmih->biHeight, pBits, pbmi, fuUsage); SelectObject(hdcMem, hOldBmp); DeleteDC(hdcMem); } return hBitmap; } more to wait...