Fix processing of events for MRU entries #10 and more in docview.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 12 Jun 2010 18:21:42 +0000 (18:21 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 12 Jun 2010 18:21:42 +0000 (18:21 +0000)
commitc70da1a2431f5391739514d3eeffd4b3b96c4508
treecdcc2a321e00b844a45b44fc0f7e4cca945cf5ab
parent67eca664b5429444e2a99d1673ef47f8f70ba4c5
Fix processing of events for MRU entries #10 and more in docview.

We only handled events for wxID_FILE1..wxID_FILE9 range but there can be more
than 9 entries in the MRU list. Handle events for as many of them as there are
correctly.

This required adding a fallback handler for all menu events and checking if
the id of the menu item is in the MRU range inside it. Also move this to
wxDocManager itself from wxDocParentFrameAnyBase as it's common for all kinds
of frames anyhow.

Closes #12141.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/docview.h
src/common/docview.cpp