Advertisement

Screen captures

Started by December 30, 2002 05:35 PM
0 comments, last by Loktide 21 years, 10 months ago
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?
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