X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/efa14cf20a6fb94b2d3099cb1b884a2c3d8c2b8f..eee3624b111881520d7d58fe174ef563c62d8375:/include/wx/msw/notebook.h diff --git a/include/wx/msw/notebook.h b/include/wx/msw/notebook.h index b6941fe64e..a2e6f84183 100644 --- a/include/wx/msw/notebook.h +++ b/include/wx/msw/notebook.h @@ -103,6 +103,9 @@ public: // style. void SetTabSize(const wxSize& sz); + // calculate the size of the notebook from the size of its page + virtual wxSize CalcSizeFromPage(const wxSize& sizePage) const; + // callbacks // --------- void OnSize(wxSizeEvent& event); @@ -132,9 +135,14 @@ protected: // remove one page from the notebook, without deleting virtual wxNotebookPage *DoRemovePage(int nPage); + // set the size of the given page to fit in the notebook + void AdjustPageSize(wxNotebookPage *page); + + // the current selection (-1 if none) int m_nSelection; + DECLARE_DYNAMIC_CLASS(wxNotebook) DECLARE_EVENT_TABLE() };