X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/20a1eea1fd93719fecec5fc44a408b0fc4e3cf33..ccdcde00d9ae27ca20ff6c3c9495918a0ec725aa:/include/wx/window.h diff --git a/include/wx/window.h b/include/wx/window.h index e431b9c83a..1b7071d626 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -298,6 +298,9 @@ public: int GetMaxWidth() const { return m_maxWidth; } int GetMaxHeight() const { return m_maxHeight; } + // Override this method to control the values given to Sizers etc. + virtual wxSize GetMaxSize() const { return wxSize( m_maxWidth, m_maxHeight ); } + // window state // ------------ @@ -736,7 +739,7 @@ public: virtual bool Layout(); // sizers - void SetSizer( wxSizer *sizer ); + void SetSizer(wxSizer *sizer, bool deleteOld = TRUE ); wxSizer *GetSizer() const { return m_windowSizer; } // Track if this window is a member of a sizer @@ -1077,3 +1080,5 @@ inline int NewControlId() { return wxWindowBase::NewControlId(); } #endif // _WX_WINDOW_H_BASE_ + +// vi:sts=4:sw=4:et