aboutsummaryrefslogtreecommitdiff
path: root/c/listview.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-20 02:30:50 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-20 02:30:50 +0200
commit79d4fa6d9a79295b747eedcc17b4de6ccdde7e37 (patch)
treee410ce9da4c00e6082625d2ed7e61a216f31f29d /c/listview.cpp
parent3d56ea09228ac2989eb8b89c8b69909603d61c3e (diff)
downloadEpisodeBrowser-79d4fa6d9a79295b747eedcc17b4de6ccdde7e37.tar.gz
Fix ANSI compatibility.
It's not very useful, but it's a fun exercise.
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);