From: Vadim Zeitlin Date: Wed, 10 Oct 2012 18:47:19 +0000 (+0000) Subject: Mention InvalidateBestSize() in DoGetBestClientSize() documentation. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/705c834b756420a09dde0ab3545db2f2e532d331?hp=4aa079bf561f378c5564717adb14665e5525358f Mention InvalidateBestSize() in DoGetBestClientSize() documentation. It is not obvious that it needs to be called when the best size changes, so give at least a hint. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/interface/wx/window.h b/interface/wx/window.h index ceada1baa7..398a062e93 100644 --- a/interface/wx/window.h +++ b/interface/wx/window.h @@ -3547,6 +3547,11 @@ protected: GetBestSize() returns an arbitrary hardcoded size for the window, so you must override it when implementing a custom window class. + Notice that the best size returned by this function is cached + internally, so if anything that results in the best size changing (e.g. + change to the control contents) happens, you need to call + InvalidateBestSize() to notify wxWidgets about it. + @see @ref overview_windowsizing @since 2.9.0