X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3276179da6b3b1e5a21238567da7e59a480c315b..2d97237dac7f35e78f4a1ce1877dafc7b05ffb4f:/include/wx/notebook.h?ds=inline diff --git a/include/wx/notebook.h b/include/wx/notebook.h index ec2065c5e3..88551e2f23 100644 --- a/include/wx/notebook.h +++ b/include/wx/notebook.h @@ -26,15 +26,21 @@ // constants // ---------------------------------------------------------------------------- -// wxNotebook hit results +#if WXWIN_COMPATIBILITY_2_6 + +// wxNotebook hit results, use wxBK_HITTEST so other book controls can share them +// if wxUSE_NOTEBOOK is disabled enum { - wxNB_HITTEST_NOWHERE = 1, // not on tab - wxNB_HITTEST_ONICON = 2, // on icon - wxNB_HITTEST_ONLABEL = 4, // on label - wxNB_HITTEST_ONITEM = wxNB_HITTEST_ONICON | wxNB_HITTEST_ONLABEL + wxNB_HITTEST_NOWHERE = wxBK_HITTEST_NOWHERE, + wxNB_HITTEST_ONICON = wxBK_HITTEST_ONICON, + wxNB_HITTEST_ONLABEL = wxBK_HITTEST_ONLABEL, + wxNB_HITTEST_ONITEM = wxBK_HITTEST_ONITEM, + wxNB_HITTEST_ONPAGE = wxBK_HITTEST_ONPAGE }; +#endif // WXWIN_COMPATIBILITY_2_6 + typedef wxWindow wxNotebookPage; // so far, any window can be a page extern WXDLLEXPORT_DATA(const wxChar) wxNotebookNameStr[];