+ // should be called whenever the toolbar size changes
+ void UpdateSize();
+
+ // override WndProc to process WM_SIZE
+ virtual long MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
+
+ // the big bitmap containing all bitmaps of the toolbar buttons
+ WXHBITMAP m_hBitmap;
+
+ // the total number of toolbar elements
+ size_t m_nButtons;
+
+ // the tool the cursor is in
+ wxToolBarToolBase *m_pInTool;
+
+private:
+ DECLARE_EVENT_TABLE()
+ DECLARE_DYNAMIC_CLASS(wxToolBar)
+
+ static bool sm_coloursInit; // Have we initialized the colour table yet?
+ static long sm_stdColours[6]; // The RGB values of the standard 6 colours
+
+public:
+ void MapBitmap(WXHBITMAP bitmap, int width, int height);