]> git.saurik.com Git - wxWidgets.git/commitdiff
changed wxMSW's default toolbar bitmaps size from obsolete 16x15 to 24x24 used by...
authorVáclav Slavík <vslavik@fastmail.fm>
Mon, 26 Jan 2009 23:16:51 +0000 (23:16 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Mon, 26 Jan 2009 23:16:51 +0000 (23:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/changes.txt
src/msw/toolbar.cpp

index d104efc8d4b1c0b0c05042e45b3398a72c7461e7..d5184eecd2d9d309442f43760b64f230d85fa932 100644 (file)
@@ -487,6 +487,8 @@ wxMSW:
   should be used.
 - Implement wxFileName::SetTimes() for directories (Steve Lamerton).
 - Added wxToolTip::SetMaxWidth() and improved default wrapping (Joachim Hönig).
+- Changed default toolbar bitmaps size from obsolete 16x15 to 24x24 used
+  by modern apps.
 
 wxX11:
 
index bdece22880772ae5c962043143cba9113488f999..13d07891169ba434c8d657022c6a7a6053f003e8 100644 (file)
@@ -43,6 +43,7 @@
     #include "wx/stattext.h"
 #endif
 
+#include "wx/artprov.h"
 #include "wx/sysopt.h"
 #include "wx/dcclient.h"
 
     #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;
 }