aboutsummaryrefslogtreecommitdiff
path: root/c/main.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-16 01:00:20 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-16 01:00:20 +0200
commit84c3dd3587e219caa80adc2070f0e9fe004c27bc (patch)
treee73b7367e8a44dba66498ae7dc244cf49b269897 /c/main.cpp
parent70928745565b01f3fae0e32ea007266aa2e1edc5 (diff)
downloadEpisodeBrowser-84c3dd3587e219caa80adc2070f0e9fe004c27bc.tar.gz
Add m_hWndParent to ListView.
This avoids g_hWnd.
Diffstat (limited to 'c/main.cpp')
-rw-r--r--c/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/main.cpp b/c/main.cpp
index cbfb8f1..6ed7ac1 100644
--- a/c/main.cpp
+++ b/c/main.cpp
@@ -169,8 +169,8 @@ static LRESULT CALLBACK CBTProc(int nCode, WPARAM wParam, LPARAM lParam)
g_iDPI = GetDpiForWindow(g_hWnd);
/* Create child windows. */
- g_lpDlv = new DataListView;
- g_lpElv = new EpisodeListView;
+ g_lpDlv = new DataListView(g_hWnd);
+ g_lpElv = new EpisodeListView(g_hWnd);
/* Get saved view settings. */
char *sz;