X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a570e8f8febd7213e789647478298293df4519db..57c6f0fe5f31e15e0cf7992f8eb654c82c1b7994:/src/univ/notebook.cpp diff --git a/src/univ/notebook.cpp b/src/univ/notebook.cpp index ebe2c8bb58..d219fa2162 100644 --- a/src/univ/notebook.cpp +++ b/src/univ/notebook.cpp @@ -76,9 +76,6 @@ protected: static const size_t INVALID_PAGE = (size_t)-1; -DEFINE_EVENT_TYPE(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED) -DEFINE_EVENT_TYPE(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING) - // ---------------------------------------------------------------------------- // private classes // ---------------------------------------------------------------------------- @@ -114,8 +111,7 @@ END_EVENT_TABLE() // implementation // ============================================================================ -IMPLEMENT_DYNAMIC_CLASS(wxNotebook, wxControl) -IMPLEMENT_DYNAMIC_CLASS(wxNotebookEvent, wxCommandEvent) +IMPLEMENT_DYNAMIC_CLASS(wxNotebook, wxBookCtrlBase) // ---------------------------------------------------------------------------- // wxNotebook creation @@ -153,7 +149,7 @@ bool wxNotebook::Create(wxWindow *parent, m_sizePad = GetRenderer()->GetTabPadding(); - SetBestSize(size); + SetInitialSize(size); CreateInputHandler(wxINP_HANDLER_NOTEBOOK);