From e9978f8d1c1acd2e51a64ad5dbe936417fd094d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 2 Apr 2022 04:00:54 +0200 Subject: Clean up UpdateTheme. --- c/listview.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'c/listview.c') diff --git a/c/listview.c b/c/listview.c index a578c61..8a96219 100644 --- a/c/listview.c +++ b/c/listview.c @@ -77,13 +77,3 @@ LvHeight(HWND hLv) return iCount? Dpi(27)+iCount*Dpi(19): 0; } -/* Enable/disable non-classic list view theme. */ -void -LvSetTheme(HWND hLv, int bUseTheme) -{ - ListView_SetExtendedListViewStyleEx(hLv, - LVS_EX_DOUBLEBUFFER, bUseTheme ? LVS_EX_DOUBLEBUFFER : 0); - SendMessage(hLv, WM_UPDATEUISTATE, - MAKEWPARAM(bUseTheme ? UIS_SET : UIS_CLEAR, UISF_HIDEFOCUS), 0); - SetWindowTheme(hLv, bUseTheme ? TEXT("Explorer") : NULL, NULL); -} -- cgit v1.2.3