mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 10:16:24 +02:00
* format_sources: exclude 3rd party sources * format common project * format leftovers in runner & settings projects * move source formatting-related files according to #939
26 lines
539 B
C++
26 lines
539 B
C++
#pragma once
|
|
#include <vector>
|
|
#include <unordered_set>
|
|
#include <string>
|
|
#include <Windows.h>
|
|
#include <UIAutomationClient.h>
|
|
|
|
struct TasklistButton
|
|
{
|
|
std::wstring name;
|
|
long x, y, width, height, keynum;
|
|
};
|
|
|
|
class Tasklist
|
|
{
|
|
public:
|
|
void update();
|
|
std::vector<TasklistButton> get_buttons();
|
|
bool update_buttons(std::vector<TasklistButton>& buttons);
|
|
|
|
private:
|
|
winrt::com_ptr<IUIAutomation> automation;
|
|
winrt::com_ptr<IUIAutomationElement> element;
|
|
winrt::com_ptr<IUIAutomationCondition> true_condition;
|
|
};
|