From dae164b8aa881d620824f0199290b2e30dc78e98 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 29 Jun 2016 18:20:55 +0200 Subject: [PATCH] Return correct main window from wxListHeaderWindow wxListHeaderWindow is part of the composite wxGenericListCtrl, so override GetMainWindowOfCompositeControl() in it to indicate this relationship. --- include/wx/generic/private/listctrl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/wx/generic/private/listctrl.h b/include/wx/generic/private/listctrl.h index 80e4a47605..77459b7582 100644 --- a/include/wx/generic/private/listctrl.h +++ b/include/wx/generic/private/listctrl.h @@ -370,6 +370,8 @@ public: int m_colToSend; int m_widthToSend; + virtual wxWindow *GetMainWindowOfCompositeControl() wxOVERRIDE { return GetParent(); } + virtual void OnInternalIdle() wxOVERRIDE; private: