changed wxMSW's default toolbar bitmaps size from obsolete 16x15 to 24x24 used by modern apps

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2009-01-26 23:16:51 +00:00
parent 6125428d54
commit 2d8b540af8
2 changed files with 6 additions and 6 deletions

View File

@@ -43,6 +43,7 @@
#include "wx/stattext.h"
#endif
#include "wx/artprov.h"
#include "wx/sysopt.h"
#include "wx/dcclient.h"
@@ -96,10 +97,6 @@
#define TB_GETMAXSIZE (WM_USER + 83)
#endif
// these values correspond to those used by comctl32.dll
#define DEFAULTBITMAPX 16
#define DEFAULTBITMAPY 15
// ----------------------------------------------------------------------------
// wxWin macros
// ----------------------------------------------------------------------------
@@ -284,8 +281,9 @@ void wxToolBar::Init()
m_nButtons = 0;
m_defaultWidth = DEFAULTBITMAPX;
m_defaultHeight = DEFAULTBITMAPY;
const wxSize size = wxArtProvider::GetNativeSizeHint(wxART_TOOLBAR);
m_defaultWidth = size.x;
m_defaultHeight = size.y;
m_pInTool = NULL;
}