limit TLW size to display size in wxSizer::Fit() instead of doing it in wxTLW::GetMaxSize(), this allows creating or manually resizing TLWs to be larger than the display while still avoiding making them too big by default

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43617 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-11-23 17:50:52 +00:00
parent 79d3dfac2f
commit 98018a4b05
4 changed files with 32 additions and 46 deletions

View File

@@ -173,22 +173,6 @@ void wxTopLevelWindowBase::GetRectForTopLevelChildren(int *x, int *y, int *w, in
GetSize(w,h);
}
wxSize wxTopLevelWindowBase::GetMaxSize() const
{
wxSize size = wxWindow::GetMaxSize();
int w, h;
wxClientDisplayRect(NULL, NULL, &w, &h );
if ( size.GetWidth() == wxDefaultCoord )
size.SetWidth(w);
if ( size.GetHeight() == wxDefaultCoord )
size.SetHeight(h);
return size;
}
/* static */
wxSize wxTopLevelWindowBase::GetDefaultSize()
{