+ // return the appropriate size and flags for the toolbar control
+ virtual wxSize DoGetBestSize() const;
+
+ // handlers for various events
+ bool HandleSize(WXWPARAM wParam, WXLPARAM lParam);
+ bool HandlePaint(WXWPARAM wParam, WXLPARAM lParam);
+ void HandleMouseMove(WXWPARAM wParam, WXLPARAM lParam);
+
+ // should be called whenever the toolbar size changes
+ void UpdateSize();
+
+ // create m_disabledImgList (but doesn't fill it), set it to NULL if it is
+ // unneeded
+ void CreateDisabledImageList();
+
+ // get the Windows toolbar style of this control
+ long GetMSWToolbarStyle() const;
+
+
+ // the big bitmap containing all bitmaps of the toolbar buttons
+ WXHBITMAP m_hBitmap;
+
+ // the image list with disabled images, may be NULL if we use
+ // system-provided versions of them
+ wxImageList *m_disabledImgList;
+
+ // 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)
+ DECLARE_NO_COPY_CLASS(wxToolBar)