X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/53a2db124c633f80bdb16336084262037d879a2c..62c9b3d73fdf9a892a311241f1effc12dde0282a:/include/wx/msw/toolbar.h diff --git a/include/wx/msw/toolbar.h b/include/wx/msw/toolbar.h index 2177278812..5e9c3e32b1 100644 --- a/include/wx/msw/toolbar.h +++ b/include/wx/msw/toolbar.h @@ -88,6 +88,9 @@ protected: // 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(); @@ -116,7 +119,9 @@ protected: // 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 @@ -144,6 +149,9 @@ protected: 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)