From e1906e8f45b732d83aca0935c59852c7aa64def9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sun, 17 Jul 2022 18:07:40 +0200 Subject: Make ListView hWnd public. A getter offers encapsulation, but it is also less transparent in a sense. Thinking of ListView as a struct, it is natural to expose hWnd as a public member variable. --- c/listview.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'c/listview.h') diff --git a/c/listview.h b/c/listview.h index 41b7613..31ecc79 100644 --- a/c/listview.h +++ b/c/listview.h @@ -5,15 +5,15 @@ struct ListView { + HWND hWnd; + ListView(HWND hWndParent, HMENU hMenu, DWORD dwStyle); int Height(int bHeader = -1); - HWND Handle(void) const; virtual void UpdateTheme(BOOL bThemeActive); virtual LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam); protected: int m_bHeader = 1; WNDPROC m_prevProc; - HWND m_hWnd; HWND m_hWndParent; }; -- cgit v1.2.3