aboutsummaryrefslogtreecommitdiff
path: root/c/listview.c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-02-16 21:39:41 +0100
committerJohn Ankarström <john@ankarstrom.se>2022-02-16 21:39:41 +0100
commit263bc8b8ff4296a1fe0014a26134ad35ebccbbff (patch)
tree3ca94ee318f49fca112fb636e5e9172fae16c273 /c/listview.c
parent2a726875d7ab370966bbb4b6ebb41756fc17f729 (diff)
downloadEpisodeBrowser-263bc8b8ff4296a1fe0014a26134ad35ebccbbff.tar.gz
Make column headers unclickable.
Diffstat (limited to 'c/listview.c')
-rw-r--r--c/listview.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/listview.c b/c/listview.c
index 956e646..d223951 100644
--- a/c/listview.c
+++ b/c/listview.c
@@ -19,7 +19,7 @@ LvCreate(HWND hWnd, HMENU hMenu)
WS_EX_CLIENTEDGE,
WC_LISTVIEW,
TEXT(""),
- WS_CHILD|WS_VISIBLE|WS_VSCROLL|LVS_REPORT,
+ WS_CHILD|WS_VISIBLE|WS_VSCROLL|LVS_REPORT|LVS_NOSORTHEADER,
0, 0, 0, 0,
hWnd,
hMenu,
@@ -53,7 +53,7 @@ LvProc(HWND hLv, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch (uMsg) {
case WM_NOTIFY:
- switch (((NMHDR *)lParam)->code) {
+ switch (((LPNMHDR)lParam)->code) {
case HDN_ENDTRACK:
UpdateLayout(GetParent(hLv));
return TRUE;