Files
wine-access/native_items.h

24 lines
531 B
C++

// 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);