X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0c133e13b36a923c65f94499554e432bc3a0daa..e94be2b1325b7f96c6feab64f303d482bb979e29:/include/wx/msw/toolbar.h diff --git a/include/wx/msw/toolbar.h b/include/wx/msw/toolbar.h index b835541e80..4de16f7180 100644 --- a/include/wx/msw/toolbar.h +++ b/include/wx/msw/toolbar.h @@ -142,6 +142,10 @@ protected: // the total number of toolbar elements size_t m_nButtons; + // the sum of the sizes of the fixed items (i.e. excluding stretchable + // spaces) in the toolbar direction + int m_totalFixedSize; + // the tool the cursor is in wxToolBarToolBase *m_pInTool; @@ -149,6 +153,17 @@ private: // makes sure tool bitmap size is sufficient for all tools void AdjustToolBitmapSize(); + // update the sizes of stretchable spacers to consume all extra space we + // have + void UpdateStretchableSpacersSize(); + + // redraw the background of the given part of the window (or entire window + // if the parameter is NULL) to erase separator drawn in it + // + // return true if the background was erased using DrawThemeBackground() + bool MSWEraseRect(wxDC& dc, const wxRect *rectItem = NULL); + + DECLARE_EVENT_TABLE() DECLARE_DYNAMIC_CLASS(wxToolBar) wxDECLARE_NO_COPY_CLASS(wxToolBar);