24 HDC hdc = ::GetDC(hprev);
26 BITMAPINFO* pbmiDIB =
new BITMAPINFO;
31 ::GetClientRect(hprev, &rect);
33 pbmiDIB->bmiHeader.biSize =
sizeof(BITMAPINFOHEADER);
34 pbmiDIB->bmiHeader.biWidth = bitmap->
Width();
35 pbmiDIB->bmiHeader.biHeight = -bitmap->
Height();
36 pbmiDIB->bmiHeader.biPlanes = 1;
37 pbmiDIB->bmiHeader.biBitCount = 32;
38 pbmiDIB->bmiHeader.biCompression = BI_RGB;
39 pbmiDIB->bmiHeader.biSizeImage = 0;
40 pbmiDIB->bmiHeader.biXPelsPerMeter = 0;
41 pbmiDIB->bmiHeader.biYPelsPerMeter = 0;
42 pbmiDIB->bmiHeader.biClrUsed = 0;
43 pbmiDIB->bmiHeader.biClrImportant = 0;
54 ::ReleaseDC(hprev, hdc);