]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/notebook.cpp
floating pane now respects IsFixed pane status; indirect fix for #4044
[wxWidgets.git] / src / univ / notebook.cpp
index ebe2c8bb583db6278a2b54759df17e616df62727..e6210f29278cb717142690c1b83883521d5fb983 100644 (file)
@@ -114,8 +114,7 @@ END_EVENT_TABLE()
 // implementation
 // ============================================================================
 
-IMPLEMENT_DYNAMIC_CLASS(wxNotebook, wxControl)
-IMPLEMENT_DYNAMIC_CLASS(wxNotebookEvent, wxCommandEvent)
+IMPLEMENT_DYNAMIC_CLASS(wxNotebook, wxBookCtrlBase)
 
 // ----------------------------------------------------------------------------
 // wxNotebook creation
@@ -153,7 +152,7 @@ bool wxNotebook::Create(wxWindow *parent,
 
     m_sizePad = GetRenderer()->GetTabPadding();
 
-    SetBestSize(size);
+    SetInitialSize(size);
 
     CreateInputHandler(wxINP_HANDLER_NOTEBOOK);