#pragma hdrstop
#endif
-#if wxUSE_DOC_VIEW_ARCHITECTURE
+#if wxUSE_MDI_ARCHITECTURE && wxUSE_DOC_VIEW_ARCHITECTURE
#include "wx/docmdi.h"
void wxDocMDIParentFrame::OnMRUFile(wxCommandEvent& event)
{
- wxString f(m_docManager->GetHistoryFile(event.GetSelection() - wxID_FILE1));
- if (f != _T(""))
+ wxString f(m_docManager->GetHistoryFile(event.GetId() - wxID_FILE1));
+ if (f != wxT(""))
(void)m_docManager->CreateDocument(f, wxDOC_SILENT);
}