X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3c55b3652b16f892e9064460bbeea94769f3d27c..2d97237dac7f35e78f4a1ce1877dafc7b05ffb4f:/include/wx/toolbook.h diff --git a/include/wx/toolbook.h b/include/wx/toolbook.h index f5b6fc8f1e..1227d82483 100644 --- a/include/wx/toolbook.h +++ b/include/wx/toolbook.h @@ -21,6 +21,9 @@ class WXDLLEXPORT wxToolBarBase; class WXDLLEXPORT wxCommandEvent; +// Use wxButtonToolBar +#define wxBK_BUTTONBAR 0x0100 + // ---------------------------------------------------------------------------- // wxToolbook // ---------------------------------------------------------------------------- @@ -54,6 +57,7 @@ public: const wxString& name = wxEmptyString); + // implement base class virtuals virtual int GetSelection() const; virtual bool SetPageText(size_t n, const wxString& strText); virtual wxString GetPageText(size_t n) const; @@ -69,11 +73,16 @@ public: virtual void SetImageList(wxImageList *imageList); virtual bool DeleteAllPages(); + virtual int HitTest(const wxPoint& pt, long *flags = NULL) const; + + + // methods which are not part of base wxBookctrl API + // get the underlying toolbar wxToolBarBase* GetToolBar() const { return (wxToolBarBase*)m_bookctrl; } - // Not part of the wxBookctrl API, but must be called in OnIdle or - // by application to realize the toolbar and select the initial page. + // must be called in OnIdle or by application to realize the toolbar and + // select the initial page. void Realize(); protected: @@ -94,7 +103,7 @@ protected: bool m_needsRealizing; // maximum bitmap size - wxSize m_maxBitmapSize; + wxSize m_maxBitmapSize; private: // common part of all constructors