Sha256: 53e97967ed0ea2b5a6eafd31debba2a27216a4ba7a7a80ce087883f8ae0ae38e
Contents?: true
Size: 904 Bytes
Versions: 18
Compression:
Stored size: 904 Bytes
Contents
#pragma once #include "StringHelper.h" using namespace System::Windows::Automation; public ref class MenuItemSelector { public: void SelectMenuPath(const HWND windowHandle, std::list<const char*>& menuItems); BOOL MenuItemExists(const HWND windowHandle, std::list<const char*>& menuItems); private: AutomationElement^ FindMenuItem(AutomationElement^ rootElement, std::list<const char*>& menuItems); PropertyCondition^ NameConditionFor(String^ name); AutomationElement^ GetNextMenuItem(AutomationElement^ foundMenuItem, String^ nextMenu); ExpandCollapsePattern^ AsExpandCollapse(AutomationElement^ foundMenuItem); void TryToExpand(ExpandCollapsePattern^ expandCollapsePattern); property PropertyCondition^ MenuItemControlType { private: PropertyCondition^ get() { return gcnew PropertyCondition(AutomationElement::ControlTypeProperty, ControlType::MenuItem); } } };
Version data entries
18 entries across 18 versions & 1 rubygems