#endif
#ifndef WX_PRECOMP
-#include "wx.h"
+#include "wx/wx.h"
#endif
#if wxUSE_BUTTONBAR && wxUSE_TOOLBAR
-#ifndef __GNUWIN32__
+#if !defined(__GNUWIN32__) && !defined(__SALFORDC__)
#include "malloc.h"
#endif
+#if !defined(__MWERKS__) && !defined(__SALFORDC__)
#include <memory.h>
+#endif
+
#include <stdlib.h>
#include "wx/tbarmsw.h"
+#include "wx/event.h"
#include "wx/app.h"
+#include "wx/bitmap.h"
#include "wx/msw/private.h"
#include "wx/msw/dib.h"
return tool;
}
-void wxToolBarMSW::Layout(void)
+void wxToolBarMSW::LayoutTools()
{
m_currentRowsOrColumns = 0;
m_lastX = m_xMargin;
node = node->Next();
}
if ( GetWindowStyleFlag() & wxTB_HORIZONTAL )
+ {
m_maxWidth += maxToolWidth;
+ m_maxHeight += maxToolHeight;
+ }
else
+ {
+ m_maxWidth += maxToolWidth;
m_maxHeight += maxToolHeight;
+ }
m_maxWidth += m_xMargin;
m_maxHeight += m_yMargin;
+
+ SetSize(m_maxWidth, m_maxHeight);
}