made wxTLW::GetSize() return the size of the maximized frame when called between Maximize() and Show(), not the original size

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34830 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-07-09 21:25:30 +00:00
parent 70a7eb078d
commit ac2de323e8

View File

@@ -668,6 +668,14 @@ void wxTopLevelWindowMSW::Maximize(bool maximize)
// we can't maximize the hidden frame because it shows it as well, so
// just remember that we should do it later in this case
m_maximizeOnShow = maximize;
// after calling Maximize() the client code expects to get the frame
// "real" size and doesn't want to know that, because of implementation
// details, the frame isn't really maximized yet but will be only once
// it's shown, so return our size as it will be then in this case
// we don't know which display we're on yet so use the default one
SetSize(wxGetClientDisplayRect().GetSize());
}
}