More accessibility fixes using foobar2000 as a test.
This commit is contained in:
1 parent
22f50402c4
commit
5f78168c57
9 files changed
+407
-14
No files matched your search
@@ -0,0 +1,23 @@
|
||||
// SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
#pragma once
|
||||
#include <windows.h>
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
struct NativeItemKey {
|
||||
uintptr_t item = 0;
|
||||
int count = 0;
|
||||
DWORD state = 0;
|
||||
bool operator==(const NativeItemKey &) const = default;
|
||||
};
|
||||
struct NativeItem {
|
||||
NativeItemKey key;
|
||||
std::string text;
|
||||
std::string role;
|
||||
std::string states;
|
||||
int position = 0;
|
||||
int count = 0;
|
||||
};
|
||||
bool is_native_item_control(HWND window);
|
||||
NativeItemKey native_item_key(HWND window);
|
||||
NativeItem read_native_item(HWND window);
|
||||
Reference in new issue
Block a user