From a20a357d928b6da93bc8b92193471f51a71127ba Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Fri, 30 Jan 2009 09:37:14 +0000 Subject: [PATCH] Make GetEffectiveMinSize virtual as not being able to override the method, which the sizer system depends on, is inflexible git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/window.h | 2 +- interface/wx/window.h | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/wx/window.h b/include/wx/window.h index ba5f596d78..4a7c051835 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -402,7 +402,7 @@ public: // This function will merge the window's best size into the window's // minimum size, giving priority to the min size components, and // returns the results. - wxSize GetEffectiveMinSize() const; + virtual wxSize GetEffectiveMinSize() const; wxDEPRECATED( wxSize GetBestFittingSize() const ); // replaced by GetEffectiveMinSize wxDEPRECATED( wxSize GetAdjustedMinSize() const ); // replaced by GetEffectiveMinSize diff --git a/interface/wx/window.h b/interface/wx/window.h index 8323298572..f54958c312 100644 --- a/interface/wx/window.h +++ b/interface/wx/window.h @@ -708,10 +708,13 @@ public: Merges the window's best size into the min size and returns the result. This is the value used by sizers to determine the appropriate ammount of space to allocate for the widget. + + This is the method called by any wxSizer when they query the size + of a certain window or control. @see GetBestSize(), SetInitialSize(), @ref overview_windowsizing */ - wxSize GetEffectiveMinSize() const; + virtual wxSize GetEffectiveMinSize() const; /** Returns the maximum size of window's client area. -- 2.45.2