diff options
Diffstat (limited to 'c/listview.h')
-rw-r--r-- | c/listview.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/c/listview.h b/c/listview.h index b0e49ee..30164f7 100644 --- a/c/listview.h +++ b/c/listview.h @@ -4,11 +4,14 @@ #include <windows.h> #include <commctrl.h> +struct Window; + struct ListView { HWND hWnd; + Window& parent; - ListView(HWND hWndParent, HMENU hMenu, DWORD dwStyle); + ListView(Window& parent, HMENU hMenu, DWORD dwStyle); /* Retrieve next matching list view item. */ bool FindNextItem(LVITEM* lvi, LPARAM lParam); /* Naively calculate height appropriate for number of items. */ @@ -21,7 +24,6 @@ struct ListView virtual LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam); protected: WNDPROC m_proc0; - HWND m_hWndParent; }; inline bool ListView::FindNextItem(LVITEM* const lvi, const LPARAM lParam) |