Windows UI Automation not showing all child elements?

后端 未结 2 1799
渐次进展
渐次进展 2021-01-18 17:30

I have a TreeView control on my form, and I\'m recursively going through the elements of another window starting with the window itself. I\'m using this to find the element

相关标签:
2条回答
  • 2021-01-18 18:11

    Could you give a better example of what fails? Thinking about the problem, it may be that the 'element' in the other form is being drawn manually, and so doesn't have distinct registered handles for everything.

    0 讨论(0)
  • 2021-01-18 18:22

    Not all programs use separate windowed controls for all their logical children. Mostly this depends on the GUI framework used.

    As an extreme example, Qt uses a single window for each top-level window. It then paints all the widgets on the form from the form's WM_PAINT message handler.

    Programs that take this approach are typically impossible to automate through generic methods.

    It sounds like you have encountered an application that uses some windowed controls but also uses custom controls with a single window for what appears to be multiple widgets. Again this is quite common.

    0 讨论(0)
提交回复
热议问题