Sha256: e89bc7c51e23e84a78fa74997cbbeaae7b7f48913131c7d86b7f5fa4a795b331
Contents?: true
Size: 1.34 KB
Versions: 2
Compression:
Stored size: 1.34 KB
Contents
#pragma once #include "AutomationControl.h" #include "StringHelper.h" using namespace System::Windows::Automation; ref class AutomatedSelectList : public AutomationControl { public: AutomatedSelectList(const HWND windowHandle); AutomatedSelectList(const FindInformation& findInformation); bool SelectByIndex(const int whichItem); bool SelectByValue(const char* whichItem); bool GetValueByIndex(const int whichItem, char* comboValue, const int comboValueSize); int GetOptions(const char* options[]); property array<String^>^ Selection { array<String^>^ get(); } property int Count { int get() { return SelectionItems->Count; } } property int SelectedIndex { int get(); } private: void Select(AutomationElement^ itemToSelect); property SelectionPattern^ AsSelectionPattern { SelectionPattern^ get() { return dynamic_cast<SelectionPattern^>(_control->GetCurrentPattern(SelectionPattern::Pattern)); } } property AutomationElementCollection^ SelectionItems { AutomationElementCollection^ get() { return _control->FindAll(System::Windows::Automation::TreeScope::Subtree, SelectionCondition); } } property PropertyCondition^ SelectionCondition { PropertyCondition^ get() { return gcnew PropertyCondition(AutomationElement::IsSelectionItemPatternAvailableProperty, true); } } };
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rautomation-0.9.2 | ext/UiaDll/UiaDll/AutomatedSelectList.h |
rautomation-0.9.1 | ext/UiaDll/UiaDll/AutomatedSelectList.h |