From d77a1f32a0ea391628a6c43dcfe02f648f1ae488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Mon, 4 Apr 2022 00:20:49 +0200 Subject: Show onfocused list view selection with gray background. --- c/episodelistview.c | 1 + c/listview.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'c') diff --git a/c/episodelistview.c b/c/episodelistview.c index cc300f4..54c8b8c 100644 --- a/c/episodelistview.c +++ b/c/episodelistview.c @@ -195,6 +195,7 @@ ElvUpdate() if (!tszName) return; /* Format episode number string. */ + ep: cb = 100; tszEpisode = malloc(cb*sizeof(TCHAR)); if (!tszEpisode) goto e; diff --git a/c/listview.c b/c/listview.c index 8a96219..e357905 100644 --- a/c/listview.c +++ b/c/listview.c @@ -20,7 +20,7 @@ LvCreate(HMENU hMenu) WC_LISTVIEW, TEXT(""), WS_CHILD|WS_VISIBLE|WS_VSCROLL|WS_TABSTOP - |LVS_REPORT|LVS_NOSORTHEADER, + |LVS_REPORT|LVS_NOSORTHEADER|LVS_SHOWSELALWAYS, 0, 0, 0, 0, HWnd, hMenu, GetModuleHandle(NULL), NULL ); -- cgit v1.2.3