diff options
author | John Ankarström <john@ankarstrom.se> | 2022-07-17 18:07:40 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-07-17 18:07:40 +0200 |
commit | e1906e8f45b732d83aca0935c59852c7aa64def9 (patch) | |
tree | 9456f5629d68c1bae7251cb44e2b01cd49532565 /c/listview.h | |
parent | bb22bc506676fd268ded3b3d6c7b7acea5dc2db9 (diff) | |
download | EpisodeBrowser-e1906e8f45b732d83aca0935c59852c7aa64def9.tar.gz |
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.
Diffstat (limited to 'c/listview.h')
-rw-r--r-- | c/listview.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; }; |