Screen captures
I''m using DirectDraw and I wish to get an image of the screen onto a DIRECTDRAWSURFACE7. Including what''s currently outside my application window. Any ideas?
December 30, 2002 05:58 PM
i would think something like this should work:
HWND wDTop = GetDesktopWindow();HDC dDTop = GetDC(wDTop);HDC dSurf;pdds->GetDC(&dSurf);// wSurf is the width of the dds// hSurf is the height of the dds::BitBlt(dSurf, 0, 0, wSurf, hSurf, dDTop, 0, 0, SRCCOPY);pdds->ReleaseDC(dSurf);::ReleaseDC(wDTop, dDTop);
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement