From 91f43f15ba484bbddcf46bc03fe57e89e6fd2585 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 21 Mar 2002 23:46:57 +0000 Subject: [PATCH] use wxArtProvider git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/tipdlg.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/generic/tipdlg.cpp b/src/generic/tipdlg.cpp index 33a019fc11..c13b869e2b 100644 --- a/src/generic/tipdlg.cpp +++ b/src/generic/tipdlg.cpp @@ -45,6 +45,7 @@ #endif // WX_PRECOMP #include "wx/statline.h" +#include "wx/artprov.h" #include "wx/tipdlg.h" @@ -195,18 +196,7 @@ wxTipDialog::wxTipDialog(wxWindow *parent, m_text->SetFont(wxFont(14, wxROMAN, wxNORMAL, wxNORMAL)); #endif -#if defined(__WXMSW__) || defined(__WXPM__) - wxIcon icon("wxICON_TIP"); -#else - // XPM hack: make the arrays const - #define static static const - - #include "wx/generic/tip.xpm" - - #undef static - - wxIcon icon(tipIcon); -#endif + wxIcon icon = wxArtProvider::GetIcon(wxART_TIP, wxART_CMN_DIALOG); wxStaticBitmap *bmp = new wxStaticBitmap(this, -1, icon); // 2) put them in boxes -- 2.45.2