aboutsummaryrefslogtreecommitdiff
path: root/c/listview.c
diff options
context:
space:
mode:
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;