Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to get the child window position embeded in another window?

How to get the child window position embeded in another window?

Scheduled Pinned Locked Moved C#
hardwarehelptutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    ritz1234
    wrote on last edited by
    #1

    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

    C 1 Reply Last reply
    0
    • R 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

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups