views:

23

answers:

1

Within my mfc program, I need to programmatically capture a portion of that program’s own window, then save it out as a file (bmp or jpg etc). How to do this without using 3rd party library?

A: 

Here is a comprehensive sample project that provides an example of saving an image of a window to a bitmap: http://www.codeguru.com/cpp/g-m/gdi/capturingimages/article.php/c11231/.

Aidan Ryan