How to get all the Child Control of the Window Opened

Dear Guys,

       I want to get the control Information of all the Control.

Here is the scenario:
----------------------
   -> When u open a window
   -> Using GetWindow we can get the next child window in the
        Parent
   -> Using this we can't get the static text information

Now is there any way to get the Information from the static text Control.

Thanks in Advance



Answer this question

How to get all the Child Control of the Window Opened

  • djun_kang

    Sir, Thanks for ur Information.

    Here's some more explanation

    If the Window has two Static text and two Text box means,

    using GetWindow I can able to get the Information (handle or hwnd) about Text Box.  I can't able to get  (the handle or hwnd) from the static text.
     
       Now My question is that is it possible to get it. If possible how it can be done

    Thanks for in Advance


  • sugar1985

    Check the window with Spy++!
    If the text is directly drwan into the parent, or better directly drawn as the background for the other controls you have no chance to get the window text with the Win32 API.

    Check the dialog or window with Spy++ and see what type of controls are in it.

  • Leon Orlov

    After getting the correct window handle you can use GetWindowText. Is it is a standard Win32 static or edit control. GetWindowText will return the text of the window.

  • How to get all the Child Control of the Window Opened