From bc9e3321660cf51b37bc866e3c35357ecf729e61 Mon Sep 17 00:00:00 2001 From: Benjamin Williams Date: Fri, 17 Nov 2006 21:47:33 +0000 Subject: [PATCH] manager should always be set in pane events git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/aui/framemanager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/aui/framemanager.cpp b/src/aui/framemanager.cpp index c9f1d7b583..9d35f47f7f 100644 --- a/src/aui/framemanager.cpp +++ b/src/aui/framemanager.cpp @@ -645,6 +645,7 @@ wxFrame* wxAuiManager::GetFrame() const wxAuiManager* wxAuiManager::GetManager(wxWindow* window) { wxAuiManagerEvent evt(wxEVT_AUI_FINDMANAGER); + evt.SetManager(NULL); evt.ResumePropagation(wxEVENT_PROPAGATE_MAX); if (!window->ProcessEvent(evt)) return NULL; @@ -3476,6 +3477,7 @@ void wxAuiManager::OnRender(wxAuiManagerEvent& evt) void wxAuiManager::Render(wxDC* dc) { wxAuiManagerEvent e(wxEVT_AUI_RENDER); + e.SetManager(this); e.SetDC(dc); ProcessMgrEvent(e); } @@ -3932,6 +3934,7 @@ void wxAuiManager::OnLeftUp(wxMouseEvent& event) { // fire button-click event wxAuiManagerEvent e(wxEVT_AUI_PANEBUTTON); + e.SetManager(this); e.SetPane(m_action_part->pane); e.SetButton(m_action_part->button->button_id); ProcessMgrEvent(e); @@ -4181,6 +4184,7 @@ void wxAuiManager::OnPaneButton(wxAuiManagerEvent& evt) { // fire pane close event wxAuiManagerEvent e(wxEVT_AUI_PANECLOSE); + e.SetManager(this); e.SetPane(evt.pane); ProcessMgrEvent(e); @@ -4194,6 +4198,7 @@ void wxAuiManager::OnPaneButton(wxAuiManagerEvent& evt) { // fire pane close event wxAuiManagerEvent e(wxEVT_AUI_PANEMAXIMIZE); + e.SetManager(this); e.SetPane(evt.pane); ProcessMgrEvent(e); @@ -4207,6 +4212,7 @@ void wxAuiManager::OnPaneButton(wxAuiManagerEvent& evt) { // fire pane close event wxAuiManagerEvent e(wxEVT_AUI_PANERESTORE); + e.SetManager(this); e.SetPane(evt.pane); ProcessMgrEvent(e);