From 79d4fa6d9a79295b747eedcc17b4de6ccdde7e37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 20 Jul 2022 02:30:50 +0200 Subject: Fix ANSI compatibility. It's not very useful, but it's a fun exercise. --- c/listview.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'c/listview.cpp') 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); -- cgit v1.2.3