抓图的速度太慢,每幅要0.6秒
CRect rc;
HWND hDesktopWnd= ::GetDesktopWindow();
::GetWindowRect(hDesktopWnd, &rc);
int width=rc.Width();
int height=rc.Height();
HDC hdc = ::GetDC(hDesktopWnd);
HBITMAP hBmp = CreateCompatibleBitmap(hdc, width,height);
HBITMAP holdBmp=(HBITMAP)::SelectObject(MemoDC,hBmp);
BitBlt(MemoDC, 0 , 0,width, height, hdc, 0, 0, SRCCOPY);
LPBITMAPINFO pbmi;
pbmi->bmiHeader.biWidth =width;
pbmi->bmiHeader.biHeight =height;
//
GetDIBits(MemoDC,hBmp,0,height,m_plbits,pbmi,DIB_RGB_COLORS);
有没有更好的方法