]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/notebook.cpp
minimize searching for tlw parent, remove useless code
[wxWidgets.git] / src / univ / notebook.cpp
index ebe2c8bb583db6278a2b54759df17e616df62727..a1c7d867f29b677399547b685281b13fbecc3e8b 100644 (file)
@@ -114,7 +114,7 @@ END_EVENT_TABLE()
 // implementation
 // ============================================================================
 
-IMPLEMENT_DYNAMIC_CLASS(wxNotebook, wxControl)
+IMPLEMENT_DYNAMIC_CLASS(wxNotebook, wxBookCtrlBase)
 IMPLEMENT_DYNAMIC_CLASS(wxNotebookEvent, wxCommandEvent)
 
 // ----------------------------------------------------------------------------
@@ -153,7 +153,7 @@ bool wxNotebook::Create(wxWindow *parent,
 
     m_sizePad = GetRenderer()->GetTabPadding();
 
-    SetBestSize(size);
+    SetInitialSize(size);
 
     CreateInputHandler(wxINP_HANDLER_NOTEBOOK);