diff options
author | John Ankarström <john@ankarstrom.se> | 2022-04-02 03:39:25 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-04-02 03:39:25 +0200 |
commit | 8fec209bfa1bdf7f2f20aa238fbada08da94d33e (patch) | |
tree | ebba7070ae52bb96c3ad3aff0214bfbea3c0032d /c | |
parent | 52a840726eefb2f2fdcb11d62e2d1649ce179272 (diff) | |
download | EpisodeBrowser-8fec209bfa1bdf7f2f20aa238fbada08da94d33e.tar.gz |
Properly hide focus rectangles.
With WM_CHANGEUISTATE, they would show up again after certain actions.
Diffstat (limited to 'c')
-rw-r--r-- | c/listview.c | 2 |
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); } |