I have an application that has drawn a grid using CDC (it has text, rectangle, and bitmaps). I want to take a screenshot of that finished grid when it is saved and use that screenshot as a “preview” for the file.
How can I take a screenshot of my application and save it?
Thank you,
Ultimately I ended up doing it this way because I wanted to capture even the hidden parts of the window (since the content extends beyond the screen and requires scrolling):
///Drew items into CaptureDC like I did for OnDraw HERE///