From 12176831abde1f4545fae95ee9edd5688f8cc584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Mon, 4 Apr 2022 01:20:30 +0200 Subject: Remove column headers from data list view. --- c/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'c/main.c') diff --git a/c/main.c b/c/main.c index eaca8f3..cf9818a 100644 --- a/c/main.c +++ b/c/main.c @@ -125,7 +125,7 @@ WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { LPMINMAXINFO lpMMI = (LPMINMAXINFO)lParam; extern HWND HDlv; - lpMMI->ptMinTrackSize.y = LvHeight(HDlv)+80; + lpMMI->ptMinTrackSize.y = LvHeight(HDlv, 0)+80; break; } case WM_THEMECHANGED: @@ -314,7 +314,7 @@ UpdateLayout() /* Resize data list view. */ hDlv = GetDlgItem(HWnd, IDC_DATALISTVIEW); - cyDlv = rc.bottom - LvHeight(hDlv); + cyDlv = rc.bottom - LvHeight(hDlv, 0); MoveWindow(hDlv, 0, cyDlv, rc.right, rc.bottom, TRUE); cxColumn = ListView_GetColumnWidth(hDlv, 0); -- cgit v1.2.3