怎么样获得HBITMAP句柄的位图的数据流信息
怎么样获得句柄HBITMAP的位图数据流信息;代码如下:
CRect Rect;
::GetWindowRect(hwnd,Rect);
HDC hSourceDC = ::GetDC(hwnd);
HDC hdc = ::CreateCompatibleDC(hSourceDC);
HBITMAP hCaptureBitmap = ::CreateCompatibleBitmap(hSourceDC, Rect.Width(), Rect.Height());
::BitBlt(hdc,0,0,Rect.Width(),Rect.Height(),hSourceDC,0,0,SRCCOPY);
怎么样获得hCaptureBitmap的位图数据流呢
我采用
BITMAP bm;
::GetObject(hCaptureBitmap,sizeof(bm),(LPVOID)&bm);
可是bm的bmBits为NULL
各位有什么办法嘛