Added GetMaxSize virtual method for use by sizers.

Modified wxSizer to use it instead of crushing all windows to
the display size.

Currently only top level windows are limited to display size,
all other windows are unlimited (inside the clipping region of
their tlw).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ron Lee
2002-03-09 02:58:13 +00:00
parent b36de7d0ce
commit 34c3ffca5b
5 changed files with 42 additions and 21 deletions

View File

@@ -113,6 +113,7 @@ public:
// override some base class virtuals
virtual bool Destroy();
virtual bool IsTopLevel() const { return TRUE; }
virtual wxSize GetMaxSize() const;
// event handlers
void OnCloseWindow(wxCloseEvent& event);
@@ -191,3 +192,5 @@ protected:
#endif // _WX_TOPLEVEL_BASE_H_
// vi:sts=4:sw=4:et