views:

125

answers:

2

Any links to code to get the control tree? Thanks.

+1  A: 

If you have an HWND, you can use AccessibleObjectFromWindow() to get the IAccessible interfaces.

jeffamaphone
Not very helpful; I don't know why they up voted this.
max
What would be helpful? Maybe you should elaborate on your question.
jeffamaphone
A: 

To elaborate on the answer from jeffamaphone:

Use AccessibleObjectFromWindow() to get an IAccessible object on which you can use the AccessibleChildren() method to get the children and thus be able to walk the accessiblity tree.

Doug Ferguson