mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-15 12:09:18 +08:00
8431b80e48
Co-authored-by: Alexis Campailla <alexis@janeasystems.com> Co-authored-by: Bret Anderson <bretan@microsoft.com> Co-authored-by: Enrico Giordani <enrico.giordani@gmail.com> Co-authored-by: Jaime Bernardo <jaime@janeasystems.com> Co-authored-by: Jeff Bogdan <jeffbog@microsoft.com> Co-authored-by: March Rogers <marchr@microsoft.com> Co-authored-by: Mike Harsh <mharsh@microsoft.com> Co-authored-by: Nachum Bundak <Nachum.Bundak@microsoft.com> Co-authored-by: Oliver Jones <ojones@microsoft.com> Co-authored-by: Patrick Little <plittle@microsoft.com>
23 lines
522 B
C++
23 lines
522 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;
|
|
};
|