X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/105fbe1ffa8968cb85fd2cac7192957e522d17ba..2e334012b4babcf063fbe79540c4c154cd54ab2b:/src/motif/mdi.cpp diff --git a/src/motif/mdi.cpp b/src/motif/mdi.cpp index fe31aa958a..998bc5d107 100644 --- a/src/motif/mdi.cpp +++ b/src/motif/mdi.cpp @@ -12,11 +12,6 @@ // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" -#ifdef __VMS -#define XtDisplay XTDISPLAY -#define XtWindow XTWINDOW -#endif - #include "wx/mdi.h" #ifndef WX_PRECOMP @@ -238,7 +233,7 @@ bool wxMDIParentFrame::ProcessEvent(wxEvent& event) bool res = false; if (m_activeChild && event.IsKindOf(CLASSINFO(wxCommandEvent))) { - res = m_activeChild->GetEventHandler()->ProcessEvent(event); + res = m_activeChild->HandleWindowEvent(event); } if (!res) @@ -365,7 +360,7 @@ bool wxMDIChildFrame::Create(wxMDIParentFrame *parent, { wxActivateEvent event(wxEVT_ACTIVATE, false, oldActiveChild->GetId()); event.SetEventObject( oldActiveChild ); - oldActiveChild->GetEventHandler()->ProcessEvent(event); + oldActiveChild->HandleWindowEvent(event); } // This is the currently active child @@ -460,12 +455,12 @@ void wxMDIChildFrame::OnRaise() { wxActivateEvent event(wxEVT_ACTIVATE, false, oldActiveChild->GetId()); event.SetEventObject( oldActiveChild ); - oldActiveChild->GetEventHandler()->ProcessEvent(event); + oldActiveChild->HandleWindowEvent(event); } wxActivateEvent event(wxEVT_ACTIVATE, true, this->GetId()); event.SetEventObject( this ); - this->GetEventHandler()->ProcessEvent(event); + this->HandleWindowEvent(event); } void wxMDIChildFrame::OnLower() @@ -477,7 +472,7 @@ void wxMDIChildFrame::OnLower() { wxActivateEvent event(wxEVT_ACTIVATE, false, oldActiveChild->GetId()); event.SetEventObject( oldActiveChild ); - oldActiveChild->GetEventHandler()->ProcessEvent(event); + oldActiveChild->HandleWindowEvent(event); } // TODO: unfortunately we don't now know which is the top-most child, // so make the active child NULL. @@ -697,7 +692,7 @@ void wxMDIClientWindow::OnPageChanged(wxNotebookEvent& event) { wxActivateEvent event(wxEVT_ACTIVATE, false, oldChild->GetId()); event.SetEventObject( oldChild ); - oldChild->GetEventHandler()->ProcessEvent(event); + oldChild->HandleWindowEvent(event); } } if (event.GetSelection() != -1) @@ -707,7 +702,7 @@ void wxMDIClientWindow::OnPageChanged(wxNotebookEvent& event) { wxActivateEvent event(wxEVT_ACTIVATE, true, activeChild->GetId()); event.SetEventObject( activeChild ); - activeChild->GetEventHandler()->ProcessEvent(event); + activeChild->HandleWindowEvent(event); if (activeChild->GetMDIParentFrame()) {