aboutsummaryrefslogtreecommitdiff
path: root/c/listview.h
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-17 18:07:40 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-17 18:07:40 +0200
commite1906e8f45b732d83aca0935c59852c7aa64def9 (patch)
tree9456f5629d68c1bae7251cb44e2b01cd49532565 /c/listview.h
parentbb22bc506676fd268ded3b3d6c7b7acea5dc2db9 (diff)
downloadEpisodeBrowser-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.h4
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;
};