diff options
author | John Ankarström <john@ankarstrom.se> | 2022-02-16 21:39:41 +0100 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-02-16 21:39:41 +0100 |
commit | 263bc8b8ff4296a1fe0014a26134ad35ebccbbff (patch) | |
tree | 3ca94ee318f49fca112fb636e5e9172fae16c273 /c/listview.c | |
parent | 2a726875d7ab370966bbb4b6ebb41756fc17f729 (diff) | |
download | EpisodeBrowser-263bc8b8ff4296a1fe0014a26134ad35ebccbbff.tar.gz |
Make column headers unclickable.
Diffstat (limited to 'c/listview.c')
-rw-r--r-- | c/listview.c | 4 |
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; |