From df88618efb32274e7b21493c48483d4761d2f9a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 3 Aug 2022 16:55:03 +0200 Subject: Load uxtheme dynamically. In case it is not supported. If I am not mistaken, SWI-Prolog supports Windows 2000, so there is no reason why Episode Browser shouldn't. --- c/listview.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'c/listview.cpp') diff --git a/c/listview.cpp b/c/listview.cpp index b10ae88..c2f5593 100644 --- a/c/listview.cpp +++ b/c/listview.cpp @@ -1,6 +1,5 @@ #include #include -#include #include "common.h" #include "listview.h" @@ -52,9 +51,9 @@ void ListView::UpdateTheme(const BOOL bThemeActive) { const wchar_t* theme; WORD action; - extern int g_bThemes; + extern BOOL (*SetWindowTheme)(HWND, LPCWSTR, LPCWSTR); - if (!g_bThemes) return; + if (!SetWindowTheme) return; if (bThemeActive) { theme = L"Explorer"; action = UIS_SET; -- cgit v1.2.3