-
Capturing window content
Hi all,
This is what I have:
A program that will take the handle of a window that is in the foreground and then take a printout (in postscript format) of whatever is visible in that window.
This is what I would like to do:
1) To get the handle of the window when it is in a minimized state.
2) Take a printout of the contents of the window while it is still in the minimized state.
Can anyone help me achieve goal 1 and 2.
Regards
-
-
hmm...looks interesting!
Hey anonytmouse...
I think this might contain just what I want!
Will try it and come back to you in a couple of days (day off at office :))
-
good progress...
alright, here's the update
As I will be generating my own window, I decided to go with technique number 1 as mentioned in that article.
It worked just as I wanted, but there are few issues left to resolve.
1) I am interested in capturing only the client area of the window. I tried using WM_PRINTCLIENT, but it doesn't work. So I decided to try something else. How about creating a window without toolbars or scroll bars, just the client area? now is that possible?
2) My final step would be to attach an ActiveX control with the window and paste a flash object and then try to capture it. Will the above method work here? Does WM_PRINT take a pixel by pixel snapshot of the window? b'coz if it does, then I won't need to worry.
Regards,
-
problems again
I have managed to capture contents of hidden windows and dialog boxes. But just as I had feared, the technique used doesn't help me in capturing any 'Shockwave Flash Object' that has been added to the window.
The Flash Object acts like some kind of transparent window, and the window doesn't even recognize what is on it. I guess I may have to get the data from the flash object somehow.
Any one feels they can suggest some other techniques?