Windows UI Automation not showing all child elements?

后端 未结 2 1800
渐次进展
渐次进展 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: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.

提交回复
热议问题