// JP opened flex table

Click to See Complete Forum and Search --> : capture graphics or image of another program?


epyk
July 4th, 2007, 09:11 AM
The problem I'm trying to solve, how to get the image or graphics of a program running (i.e. word aim, internet explorer, ect.) and have it show in a Picturebox control as the window of that program.
I was thinking of a method that would use a screen capture and that programs x, y location and its height, width data. the only problem is if the window is minimized or if another window is on top of it.
I am currently using c# but any code would help whether it is VB or c++ I can do the conversions myself. I am just stuck on this road block and have been beating my self dizzy for weeks now.

epyk
July 7th, 2007, 11:08 PM
ok meither no one knows or no one cares

ne0n82
July 7th, 2007, 11:30 PM
ill be honest im not exactly sure how to do this.....but if i had to i would start here...
http://msdn2.microsoft.com/en-us/library/ms633519.aspx
then from using that function i would probably use the window coordinates to BLIT a rectangle then fill my control. google is your friend

spiroyster
July 15th, 2007, 06:56 AM
I personally don't know. But at a guess....

How about dumping portions/all the screen buffer to your own prog.
The screen buffer is buried somewhere in the windows sys (I had a program once that did similar to what you want), or grab it from your gfx.

miteshpandey
July 15th, 2007, 07:58 AM
The following link maybe helpful to you:

Article by GolanShahar (http://www.codeguru.com/cpp/g-m/gdi/capturingimages/article.php/c11231/)

//JP added flex table