Add wxDocManager::Get{Views,Documents,Templates}Vector().
Add accessors returning more convenient wxVectors to supplement the existing ones giving access to internally used wxLists. Closes #14814. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -385,16 +385,19 @@ void MyApp::OnAbout(wxCommandEvent& WXUNUSED(event))
|
||||
default:
|
||||
wxFAIL_MSG( "unknown mode ");
|
||||
}
|
||||
const wxDocVector
|
||||
docList = wxDocManager::GetDocumentManager()->GetDocumentsVector();
|
||||
|
||||
wxLogMessage
|
||||
(
|
||||
"This is the wxWidgets Document/View Sample\n"
|
||||
"running in %s mode.\n"
|
||||
"%d open documents.\n"
|
||||
"\n"
|
||||
"Authors: Julian Smart, Vadim Zeitlin\n"
|
||||
"\n"
|
||||
"Usage: docview [--{mdi,sdi,single}]",
|
||||
modeName
|
||||
modeName,
|
||||
static_cast<int>(docList.size())
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user