GetDIBits在2000下没问题,可是在98下就返回零.条件是一样的,为什么?
kvk 2003-01-05 02:19:02 int bGotBits = GetDIBits( hdc, (HBITMAP)hbit,
0, // Start scan line
(DWORD)bi.biHeight, // # of scan lines
(LPBYTE)lpbi // address for bitmap bits
+ (bi.biSize + nColors * sizeof(RGBQUAD)),
(LPBITMAPINFO)lpbi, // address of bitmapinfo
(DWORD)DIB_RGB_COLORS); // Use RGB for color table