aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-04-04 00:20:49 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-04-04 00:20:49 +0200
commitd77a1f32a0ea391628a6c43dcfe02f648f1ae488 (patch)
tree4959501317839739cf77a643afae375fec44e0a5
parent30824adc5ee4b97e58038fb2e244548255e19ab1 (diff)
downloadEpisodeBrowser-d77a1f32a0ea391628a6c43dcfe02f648f1ae488.tar.gz
Show onfocused list view selection with gray background.
-rw-r--r--c/episodelistview.c1
-rw-r--r--c/listview.c2
2 files changed, 2 insertions, 1 deletions
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
);