don't use wxApp::GetStdIcon

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2002-03-24 00:21:26 +00:00
parent 3a72b4eff0
commit 389d906b21
5 changed files with 55 additions and 24 deletions

View File

@@ -41,6 +41,7 @@
#include "wx/sizer.h"
#include "wx/notebook.h"
#include "wx/artprov.h"
#include "widgets.h"
@@ -320,10 +321,11 @@ void NotebookWidgetsPage::CreateImageList()
{
// create a dummy image list with a few icons
m_imageList = new wxImageList(32, 32);
m_imageList->Add(wxTheApp->GetStdIcon(wxICON_INFORMATION));
m_imageList->Add(wxTheApp->GetStdIcon(wxICON_QUESTION));
m_imageList->Add(wxTheApp->GetStdIcon(wxICON_WARNING));
m_imageList->Add(wxTheApp->GetStdIcon(wxICON_ERROR));
wxSize size(32, 32);
m_imageList->Add(wxArtProvider::GetIcon(wxART_INFORMATION, wxART_OTHER, size));
m_imageList->Add(wxArtProvider::GetIcon(wxART_QUESTION, wxART_OTHER, size));
m_imageList->Add(wxArtProvider::GetIcon(wxART_WARNING, wxART_OTHER, size));
m_imageList->Add(wxArtProvider::GetIcon(wxART_ERROR, wxART_OTHER, size));
}
m_notebook->SetImageList(m_imageList);