How to get the child window position embeded in another window?
-
Hello friends, How do we get the position(top,left,height,width) of the child window control embedded in another window. The problem that I need to solve can be described below. 1)In skype when we have the video call we can see the video of the calling party in the window embedded in the main messenger window 2)I want to capture the video of the embedded video window of the main messenger window 3)From the process Skype.exe we can get the handle of the Skype main window and from that handle of the main window I want to find out the top,left and height,width of the embedded video window of the main messenger window. How I can achieve this? Any suggestions or alternate ways to do this? Thanks in Advance
ritz1234
-
Hello friends, How do we get the position(top,left,height,width) of the child window control embedded in another window. The problem that I need to solve can be described below. 1)In skype when we have the video call we can see the video of the calling party in the window embedded in the main messenger window 2)I want to capture the video of the embedded video window of the main messenger window 3)From the process Skype.exe we can get the handle of the Skype main window and from that handle of the main window I want to find out the top,left and height,width of the embedded video window of the main messenger window. How I can achieve this? Any suggestions or alternate ways to do this? Thanks in Advance
ritz1234
You can iterate over the child windows using C APIs, yes. You can use p/invoke to do it from C#. However, it sounds ugly to me. I am not sure how you'll work out what window you want. There's an API that gives you the window at a point, perhaps you need to get the user to click on the video window ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.