المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How to get the Left,Top and Height,Width of perticular region within an running application?



C# Programming
11-11-2009, 12:00 PM
Hello Dear Friends,

I've an application which shows the video from the webcam.
I want to create a C# application which can capture the part of the first application that shows the video in it. Can anybody suggest the way to do this. One way to do this is as described below

1) From the first running application that shows the video in it we can get handle of the window and from that window handle we can get the left,top, right,bottom of the area of the application that shows the video. I've HWND of the first running application but how do I get the left,top,height,width of the area which shows the video.

Is there any other way to achieve this or suggestion for this.

Thanks in Advance,

ritz1234