-void wxToolBar::MSWSetBitmapSize(const wxSize& size)
-{
- ::SendMessage(GetHwnd(), TB_SETBITMAPSIZE, 0, MAKELONG(size.x, size.y));
-}
-
-void wxToolBar::AdjustToolBitmapSize()
-{
- // this is the default bitmap size, we only need to call TB_SETBITMAPSIZE
- // if we use something different
- static const wxSize sizeStd(16, 15);
-
- wxSize s(m_defaultWidth, m_defaultHeight);
-
- for ( wxToolBarToolsList::const_iterator i = m_tools.begin();
- i != m_tools.end();
- ++i )
- {
- const wxBitmap& bmp = (*i)->GetNormalBitmap();
- s.IncTo(bmp.GetSize());
- }
-
- if ( s != sizeStd )
- MSWSetBitmapSize(s);
-}
-