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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user