aboutsummaryrefslogtreecommitdiff
path: root/c/listview.c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-04-02 03:39:25 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-04-02 03:39:25 +0200
commit8fec209bfa1bdf7f2f20aa238fbada08da94d33e (patch)
treeebba7070ae52bb96c3ad3aff0214bfbea3c0032d /c/listview.c
parent52a840726eefb2f2fdcb11d62e2d1649ce179272 (diff)
downloadEpisodeBrowser-8fec209bfa1bdf7f2f20aa238fbada08da94d33e.tar.gz
Properly hide focus rectangles.
With WM_CHANGEUISTATE, they would show up again after certain actions.
Diffstat (limited to 'c/listview.c')
-rw-r--r--c/listview.c2
1 files changed, 1 insertions, 1 deletions
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);
}