From 8122c83bb3be30325f49d50dbafcd2f14c9b0d2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Mon, 11 Jul 2022 00:34:44 +0200 Subject: Improve ElvSort. --- c/listview.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'c/listview.cpp') diff --git a/c/listview.cpp b/c/listview.cpp index 87b7dbc..09a3024 100644 --- a/c/listview.cpp +++ b/c/listview.cpp @@ -35,13 +35,12 @@ ListView::Create(HMENU hMenu, DWORD dwStyle) int ListView::Height(int bHeader) { - int iCount; - iCount = ListView_GetItemCount(m_hWnd); + int iCount = ListView_GetItemCount(m_hWnd); return iCount? Dpi(bHeader? 27: 4)+iCount*Dpi(19): 0; } HWND -ListView::HWnd() +ListView::HWnd() const { return m_hWnd; } -- cgit v1.2.3