- const wxSize size = wxArtProvider::GetNativeSizeHint(wxART_TOOLBAR);
- m_defaultWidth = size.x;
- m_defaultHeight = size.y;
+ // even though modern Windows applications typically use 24*24 (or even
+ // 32*32) size for their bitmaps, the native control itself still uses the
+ // old 16*15 default size (see TB_SETBITMAPSIZE documentation in MSDN), so
+ // default to it so that we don't call SetToolBitmapSize() unnecessarily in
+ // AdjustToolBitmapSize()
+ m_defaultWidth = 16;
+ m_defaultHeight = 15;