Why doesn't UI Automation condition find element by UIA_IsScrollPatternAvailablePropertyId?
问题 I wanted to find the element within a main window handle that allows scrolling. So instead of finding scrollbars and then the owner of the scrollbars I wanted to just return the items that allow scrolling via a ScrollPattern so I setup the condition on that but nothing is found. if I search for scrollbar owner window then get the ScrollPattern it works. Why can't I just find the elements that have a scroll pattern available? Here's the common code: BOOL CUIAutomateScroller::FindWindow(HWND