ext/UiaDll/UiaDll/ElementStructures.h in uia-0.0.8 vs ext/UiaDll/UiaDll/ElementStructures.h in uia-0.0.9

- old
+ new

@@ -13,10 +13,12 @@ int patternsLength; char* id; bool isEnabled; bool isVisible; + bool hasKeyboardFocus; + long boundingRectangle[4]; _ElementInformation() : name(NULL), nativeWindowHandle(0), runtimeId(NULL), patterns(NULL), id(NULL), className(NULL) {} _ElementInformation(Element^ element) : name(NULL), nativeWindowHandle(0), runtimeId(NULL), patterns(NULL), id(NULL), className(NULL) { Refresh(element); @@ -50,9 +52,15 @@ patterns = ArrayHelper::FromArray(element->SupportedPatternIds); patternsLength = element->SupportedPatternIds->Length; isEnabled = element->IsEnabled; isVisible = element->IsVisible; + hasKeyboardFocus = element->HasKeyboardFocus; + + auto r = element->BoundingRectangle; + for(auto coord = 0; coord < 4; coord++) { + boundingRectangle[coord] = r[coord]; + } } ~_ElementInformation() { Reset(); }