#include "wx/dynarray.h"
#include "wx/imaglist.h"
-class WXDLLEXPORT wxToolBar : public wxToolBarBase
+class WXDLLIMPEXP_CORE wxToolBar : public wxToolBarBase
{
public:
// ctors and dtor
// create the native toolbar control
bool MSWCreateToolbar(const wxPoint& pos, const wxSize& size);
+ // just a wrapper for TB_SETBITMAPSIZE
+ void MSWSetBitmapSize(const wxSize& size);
+
// recreate the control completely
void Recreate();
// handlers for various events
bool HandleSize(WXWPARAM wParam, WXLPARAM lParam);
+#ifndef __WXWINCE__
bool HandlePaint(WXWPARAM wParam, WXLPARAM lParam);
+#endif // __WXWINCE__
void HandleMouseMove(WXWPARAM wParam, WXLPARAM lParam);
// should be called whenever the toolbar size changes
wxToolBarToolBase *m_pInTool;
private:
+ // makes sure tool bitmap size is sufficient for all tools
+ void AdjustToolBitmapSize();
+
DECLARE_EVENT_TABLE()
DECLARE_DYNAMIC_CLASS(wxToolBar)
DECLARE_NO_COPY_CLASS(wxToolBar)