From 84c3dd3587e219caa80adc2070f0e9fe004c27bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 16 Jul 2022 01:00:20 +0200 Subject: Add m_hWndParent to ListView. This avoids g_hWnd. --- c/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'c/main.cpp') 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; -- cgit v1.2.3