From 8fec209bfa1bdf7f2f20aa238fbada08da94d33e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 2 Apr 2022 03:39:25 +0200 Subject: Properly hide focus rectangles. With WM_CHANGEUISTATE, they would show up again after certain actions. --- c/listview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'c') diff --git a/c/listview.c b/c/listview.c index a69ddf8..a578c61 100644 --- a/c/listview.c +++ b/c/listview.c @@ -83,7 +83,7 @@ LvSetTheme(HWND hLv, int bUseTheme) { ListView_SetExtendedListViewStyleEx(hLv, LVS_EX_DOUBLEBUFFER, bUseTheme ? LVS_EX_DOUBLEBUFFER : 0); - SendMessage(hLv, WM_CHANGEUISTATE, + SendMessage(hLv, WM_UPDATEUISTATE, MAKEWPARAM(bUseTheme ? UIS_SET : UIS_CLEAR, UISF_HIDEFOCUS), 0); SetWindowTheme(hLv, bUseTheme ? TEXT("Explorer") : NULL, NULL); } -- cgit v1.2.3