18 lines
445 B
C++
18 lines
445 B
C++
// SPDX-License-Identifier: LGPL-2.1-or-later
|
|
#pragma once
|
|
#include <windows.h>
|
|
#include <string>
|
|
|
|
struct ListViewRow {
|
|
std::string text;
|
|
int index = -1;
|
|
int count = 0;
|
|
bool selected = false;
|
|
int checked = -1; // -1: no standard checkbox, 0: unchecked, 1: checked.
|
|
};
|
|
|
|
bool is_list_view(HWND window);
|
|
ListViewRow read_list_view(HWND window);
|
|
int list_view_index(HWND window, int *count);
|
|
int list_view_checked(HWND window, int index);
|