Click to See Complete Forum and Search --> : Capture from background window.


chrisochap
June 2nd, 2006, 03:35 PM
Is there a way to capture from a window that is not currently displayed given a window HWND? I've used bitblt to capture from a displayed window before, but would really hate to have to set the window from which I want to capture as the foreground window just to do the capture before returning it to the background. Any suggestions? Thanks much.

-Chris

ovidiucucu
June 3rd, 2006, 05:25 AM
Thake a look at this Codeguru article:
Capturing Windows Regardless of Their Z-Order (http://www.codeguru.com/cpp/g-m/gdi/capturingimages/article.php/c11231/).

Psytherium
June 13th, 2006, 02:51 PM
I wish there was a faster way than Mr. Golan's solution. Even with modifying his code in CaptureWindow() to only loop through once, it is still about 5-6 times slower than capturing a foreground window with BitBlt().