wxAuiManager* wxAuiManager::GetManager(wxWindow* window)
{
wxAuiManagerEvent evt(wxEVT_AUI_FINDMANAGER);
+ evt.SetManager(NULL);
evt.ResumePropagation(wxEVENT_PROPAGATE_MAX);
if (!window->ProcessEvent(evt))
return NULL;
void wxAuiManager::Render(wxDC* dc)
{
wxAuiManagerEvent e(wxEVT_AUI_RENDER);
+ e.SetManager(this);
e.SetDC(dc);
ProcessMgrEvent(e);
}
{
// 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);
{
// fire pane close event
wxAuiManagerEvent e(wxEVT_AUI_PANECLOSE);
+ e.SetManager(this);
e.SetPane(evt.pane);
ProcessMgrEvent(e);
{
// fire pane close event
wxAuiManagerEvent e(wxEVT_AUI_PANEMAXIMIZE);
+ e.SetManager(this);
e.SetPane(evt.pane);
ProcessMgrEvent(e);
{
// fire pane close event
wxAuiManagerEvent e(wxEVT_AUI_PANERESTORE);
+ e.SetManager(this);
e.SetPane(evt.pane);
ProcessMgrEvent(e);