From 96f0accc818ad98abcb0d37e53d0a31e08ce4987 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Thu, 14 Jul 2022 04:05:34 +0200 Subject: Minor formal changes. Height(DLVSIKEY) was incorrect. The argument to Height is supposed to be a boolean value, in this case false. It happened to work because DLVSIKEY is 0 (because Key is the 0th column in the data list view). --- c/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'c/main.cpp') diff --git a/c/main.cpp b/c/main.cpp index 43fe5f0..3cfe2d6 100644 --- a/c/main.cpp +++ b/c/main.cpp @@ -522,7 +522,7 @@ UpdateLayout() /* Resize data list view. */ SendMessage(g_lpDlv->HWnd(), WM_SETREDRAW, FALSE, 0); SendMessage(g_lpElv->HWnd(), WM_SETREDRAW, FALSE, 0); - cyDlv = rc.bottom-yStatus-g_lpDlv->Height(DLVSIKEY); + cyDlv = rc.bottom-yStatus-g_lpDlv->Height(); MoveWindow(g_lpDlv->HWnd(), 0, cyDlv, rc.right, rc.bottom-yStatus-cyDlv, TRUE); ListView_SetColumnWidth(g_lpDlv->HWnd(), DLVSIKEY, LVSCW_AUTOSIZE); cxColumn = ListView_GetColumnWidth(g_lpDlv->HWnd(), 0)+4; -- cgit v1.2.3