From 95835bc453babb3a78d23573f241adcfb985aa17 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Fri, 13 Mar 2009 09:22:23 +0000 Subject: [PATCH] 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 --- include/wx/bookctrl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.47.2