aboutsummaryrefslogtreecommitdiff
path: root/c/listview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c/listview.cpp')
-rw-r--r--c/listview.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/c/listview.cpp b/c/listview.cpp
index 056a17b..3ad66f5 100644
--- a/c/listview.cpp
+++ b/c/listview.cpp
@@ -56,8 +56,10 @@ void ListView::UpdateTheme(const BOOL bThemeActive)
wAction = UIS_CLEAR;
}
+#ifdef UNICODE
/* Use modern "Explorer" theme. */
SetWindowTheme(hWnd, tszTheme, NULL);
+#endif
/* The modern theme requires double buffering. */
ListView_SetExtendedListViewStyleEx(hWnd, LVS_EX_DOUBLEBUFFER, dwStyle);