X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/841f23e18a9d9e3d987b60422c3a220571868337..acd32ffcdb319f162633c20e0202db3f8542998a:/src/generic/panelg.cpp?ds=sidebyside diff --git a/src/generic/panelg.cpp b/src/generic/panelg.cpp index e15d79bf81..d714bce3c0 100644 --- a/src/generic/panelg.cpp +++ b/src/generic/panelg.cpp @@ -97,7 +97,7 @@ END_EVENT_TABLE() // implementation // ============================================================================ -WX_DELEGATE_TO_CONTROL_CONTAINER(wxPanel) +WX_DELEGATE_TO_CONTROL_CONTAINER(wxPanel, wxWindow) // ---------------------------------------------------------------------------- // wxPanel creation @@ -105,7 +105,7 @@ WX_DELEGATE_TO_CONTROL_CONTAINER(wxPanel) void wxPanel::Init() { - m_container.SetContainerWindow(this); + WX_INIT_CONTROL_CONTAINER(); } bool wxPanel::Create(wxWindow *parent, wxWindowID id,