X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a18c21f000651e46cd22c31790897f6832e002bd..a5b31f4e11c860fa5d9949c8694a7499793c3b98:/include/wx/bookctrl.h diff --git a/include/wx/bookctrl.h b/include/wx/bookctrl.h index 4cea68ba31..6d3c80b670 100644 --- a/include/wx/bookctrl.h +++ b/include/wx/bookctrl.h @@ -27,6 +27,20 @@ WX_DEFINE_EXPORTED_ARRAY_PTR(wxWindow *, wxArrayPages); class WXDLLEXPORT wxImageList; +// ---------------------------------------------------------------------------- +// constants +// ---------------------------------------------------------------------------- + +// wxBookCtrl hit results +enum +{ + wxBK_HITTEST_NOWHERE = 1, // not on tab + wxBK_HITTEST_ONICON = 2, // on icon + wxBK_HITTEST_ONLABEL = 4, // on label + wxBK_HITTEST_ONITEM = wxBK_HITTEST_ONICON | wxBK_HITTEST_ONLABEL, + wxBK_HITTEST_ONPAGE = 8 // not on tab control, but over the selected page +}; + // ---------------------------------------------------------------------------- // wxBookCtrlBase // ---------------------------------------------------------------------------- @@ -199,6 +213,10 @@ public: return wxNOT_FOUND; } + + // we do have multiple pages + virtual bool HasMultiplePages() const { return true; } + protected: // Should we accept NULL page pointers in Add/InsertPage()? //