diff --git a/include/wx/aui/auibook.h b/include/wx/aui/auibook.h index aa162f7230..edec2ce078 100644 --- a/include/wx/aui/auibook.h +++ b/include/wx/aui/auibook.h @@ -335,9 +335,6 @@ public: // we don't want focus for ourselves // virtual bool AcceptsFocus() const { return false; } - // Redo sizing after thawing - virtual void Thaw(); - //wxBookCtrlBase functions virtual void SetPageSize (const wxSize &size); @@ -363,6 +360,9 @@ protected: // choose the default border for this window virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; } + // Redo sizing after thawing + virtual void DoThaw(); + // these can be overridden // update the height, return true if it was done or false if the new height diff --git a/src/aui/auibook.cpp b/src/aui/auibook.cpp index eed5e4c7f0..f9ab942b9a 100644 --- a/src/aui/auibook.cpp +++ b/src/aui/auibook.cpp @@ -3238,11 +3238,11 @@ bool wxAuiNotebook::ShowWindowMenu() return false; } -void wxAuiNotebook::Thaw() +void wxAuiNotebook::DoThaw() { DoSizing(); - wxControl::Thaw(); + wxBookCtrlBase::DoThaw(); } void wxAuiNotebook::SetPageSize (const wxSize& WXUNUSED(size))