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:
|
||||
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
|
||||
(
|
||||
@@ -398,6 +404,6 @@ void MyApp::OnAbout(wxCommandEvent& WXUNUSED(event))
|
||||
"\n"
|
||||
"Usage: docview [--{mdi,sdi,single}]",
|
||||
modeName,
|
||||
static_cast<int>(docList.size())
|
||||
docsCount
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user