Compilation fix to docview sample after r73004.
Don't use wxDocManager::GetDocumentsVector() with VC6 which doesn't have it. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73028 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -385,8 +385,14 @@ void MyApp::OnAbout(wxCommandEvent& WXUNUSED(event))
|
|||||||
default:
|
default:
|
||||||
wxFAIL_MSG( "unknown mode ");
|
wxFAIL_MSG( "unknown mode ");
|
||||||
}
|
}
|
||||||
const wxDocVector
|
|
||||||
docList = wxDocManager::GetDocumentManager()->GetDocumentsVector();
|
#ifdef __VISUALC6__
|
||||||
|
const int docsCount =
|
||||||
|
wxDocManager::GetDocumentManager()->GetDocuments().GetCount();
|
||||||
|
#else
|
||||||
|
const int docsCount =
|
||||||
|
wxDocManager::GetDocumentManager()->GetDocumentsVector().size();
|
||||||
|
#endif
|
||||||
|
|
||||||
wxLogMessage
|
wxLogMessage
|
||||||
(
|
(
|
||||||
@@ -398,6 +404,6 @@ void MyApp::OnAbout(wxCommandEvent& WXUNUSED(event))
|
|||||||
"\n"
|
"\n"
|
||||||
"Usage: docview [--{mdi,sdi,single}]",
|
"Usage: docview [--{mdi,sdi,single}]",
|
||||||
modeName,
|
modeName,
|
||||||
static_cast<int>(docList.size())
|
docsCount
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user