OSDN Git Service

UIAHandler.isNativeUIAElement: Don't assume all MSAA proxies are not native UIA....
authorJames Teh <jamie@jantrid.net>
Wed, 6 Jul 2011 07:19:49 +0000 (17:19 +1000)
committerJames Teh <jamie@jantrid.net>
Wed, 6 Jul 2011 07:19:49 +0000 (17:19 +1000)
commitc3a956f4c95a47a0e9ed48d8221adb907b38d876
tree4e36b44bec8c239e0bd246625baeb1389cbb554c
parentcc9ff2e7bbdba6c417e864d3136af7ebb1201465
UIAHandler.isNativeUIAElement: Don't assume all MSAA proxies are not native UIA. Instead, check whether the nearest window claims to natively support UIA.
This is because some controls implement UIA at their root but then use MSAA proxies beneath. We still want to use UIA in these cases, as MSAA ignores events for all windows which natively support UIA.
Among other things, this fixes the lists in the Windows 7 Firewall and Default Programs control panels.
source/_UIAHandler.py