diff options
author | John Ankarström <john@ankarstrom.se> | 2022-08-03 16:55:03 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-08-03 16:55:03 +0200 |
commit | df88618efb32274e7b21493c48483d4761d2f9a3 (patch) | |
tree | 2c86ca67efc96e27b6fdd32a95e3bcb7ab1c90d0 /c/listview.cpp | |
parent | 23dc657f0af27bdac887f8d18208d544cc9f010e (diff) | |
download | EpisodeBrowser-df88618efb32274e7b21493c48483d4761d2f9a3.tar.gz |
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.
Diffstat (limited to 'c/listview.cpp')
-rw-r--r-- | c/listview.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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 <windows.h> #include <commctrl.h> -#include <uxtheme.h> #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; |