aboutsummaryrefslogtreecommitdiff
path: root/c/listview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c/listview.cpp')
-rw-r--r--c/listview.cpp5
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;