From: Julian Smart Date: Fri, 13 Mar 2009 09:22:23 +0000 (+0000) Subject: Made DoSize and GetPageRect virtual for easier derivation without duplicating a lot... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/95835bc453babb3a78d23573f241adcfb985aa17 Made DoSize and GetPageRect virtual for easier derivation without duplicating a lot of code git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/bookctrl.h b/include/wx/bookctrl.h index 8ecfbef190..e101e0660c 100644 --- a/include/wx/bookctrl.h +++ b/include/wx/bookctrl.h @@ -286,7 +286,7 @@ protected: int GetNextPage(bool forward) const; // Lay out controls - void DoSize(); + virtual void DoSize(); // This method also invalidates the size of the controller and should be // called instead of just InvalidateBestSize() whenever pages are added or @@ -309,7 +309,7 @@ protected: bool m_ownsImageList; // get the page area - wxRect GetPageRect() const; + virtual wxRect GetPageRect() const; // event handlers virtual wxSize GetControllerSize() const;