Use ProcessEventLocally() instead of ProcessEventHere() in docview code.

Use wxEvtHandler::ProcessEventLocally() instead of ProcessEventHere() when
forwarding events in the docview code. This ensures that any event handlers
chained with the objects involved (document manager, document, view) will be
used.

Incidentally the old code didn't work at all as ProcessEventHere() didn't even
call TryBefore() where the (further) forwarding was implemented.

Closes #10640.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2010-05-09 14:55:41 +00:00
parent 396e9eb8e2
commit 44070fd379
3 changed files with 5 additions and 5 deletions

View File

@@ -580,7 +580,7 @@ protected:
// a chance to process the message before the frame event handlers are used
bool TryProcessEvent(wxEvent& event)
{
return m_childView && m_childView->ProcessEventHere(event);
return m_childView && m_childView->ProcessEventLocally(event);
}
// called from EVT_CLOSE handler in the frame: check if we can close and do