// 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
bool res = false;
if (m_activeChild && event.IsKindOf(CLASSINFO(wxCommandEvent)))
{
- res = m_activeChild->GetEventHandler()->ProcessEvent(event);
+ res = m_activeChild->HandleWindowEvent(event);
}
if (!res)
{
wxActivateEvent event(wxEVT_ACTIVATE, false, oldActiveChild->GetId());
event.SetEventObject( oldActiveChild );
- oldActiveChild->GetEventHandler()->ProcessEvent(event);
+ oldActiveChild->HandleWindowEvent(event);
}
// This is the currently active child
{
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()
{
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.
{
wxActivateEvent event(wxEVT_ACTIVATE, false, oldChild->GetId());
event.SetEventObject( oldChild );
- oldChild->GetEventHandler()->ProcessEvent(event);
+ oldChild->HandleWindowEvent(event);
}
}
if (event.GetSelection() != -1)
{
wxActivateEvent event(wxEVT_ACTIVATE, true, activeChild->GetId());
event.SetEventObject( activeChild );
- activeChild->GetEventHandler()->ProcessEvent(event);
+ activeChild->HandleWindowEvent(event);
if (activeChild->GetMDIParentFrame())
{