From 5fb8df682831045c4619b65403c4a24d7583d2e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 3 Aug 2022 19:11:15 +0200 Subject: Remove m_bHeader from ListView. If it is relevant to add height for a header for a given list view, it is better to override Height and do it there. --- c/listview.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'c/listview.h') diff --git a/c/listview.h b/c/listview.h index c812cd8..1de6cc1 100644 --- a/c/listview.h +++ b/c/listview.h @@ -10,12 +10,11 @@ struct ListView ListView(HWND hWndParent, HMENU hMenu, DWORD dwStyle); bool FindNextItem(LVITEM* lvi, LPARAM lParam); - virtual int Height(int bHeader = -1); + virtual int Height(); virtual void ResizeColumns(int w); virtual void UpdateTheme(BOOL bThemeActive); virtual LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam); protected: - int m_bHeader = 1; WNDPROC m_proc0; HWND m_hWndParent; }; -- cgit v1.2.3