Window capture problem
hi gurus,
how can i capture the image(window) created by CreateWindow API even the main window is minimized? is this possible? is there a window message which triggers the drawing of the window even if it is minimized?
desperately need help!
thanks in advance.
[287 byte] By [
andievonne] at [2007-11-18 19:11:54]

# 1 Re: Window capture problem
A minimized window has no content, practically (no client area) so there is nothing to "capture". But I actually don't know what you mean by "capture". Normally, it means grabbing the contents of a window that doesn't belong to yout application, and is done by enumerating the windows (system wide), getting the corresponding client DC and blitting from it.
Could you elaborate your problem, please?
# 2 Re: Window capture problem
hi gabriel,
thanks for your prompt reply.
my problem is on how to capture the window of my application at certain time intervals and save this "captured window" as a bitmap.
as you have said, if the window is minimized, there is no window to capture. this is my biggest problem. :-(
# 3 Re: Window capture problem
Hi!
Well I can recommend you using a Timer and check your window in every second (or in every 50 ms, etc.). If the window is not minimized and has size (width and height) you may capture (and copy to a bitmap), using GetDC and BitBlt . If the window is minimized, it is nothing to capture.
The only problem is that, if there is another window above your window, you will capture this window too. And it is impossible to avoid this! The Windows works in this way, sorry
manoka at 2007-11-10 3:54:01 >
