wxTLW::IsAlwaysMaximized() introduction.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38942 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2006-04-27 17:18:46 +00:00
parent 30ab80d646
commit 979a0320b0
4 changed files with 29 additions and 4 deletions

View File

@@ -185,6 +185,11 @@ wxSize wxTopLevelWindowBase::GetDefaultSize()
void wxTopLevelWindowBase::DoCentre(int dir)
{
// on some platforms centering top level windows is impossible
// because they are always maximized by guidelines or limitations
if(IsAlwaysMaximized())
return;
// we need the display rect anyhow so store it first
int nDisplay = wxDisplay::GetFromWindow(this);
wxDisplay dpy(nDisplay == wxNOT_FOUND ? 0 : nDisplay);
@@ -286,6 +291,14 @@ void wxTopLevelWindowBase::DoClientToScreen(int *x, int *y) const
wxWindow::DoClientToScreen(x, y);
}
bool wxTopLevelWindowBase::IsAlwaysMaximized() const
{
#if defined(__SMARTPHONE__) || defined(__POCKETPC__)
return true;
#else
return false;
#endif
}
// ----------------------------------------------------------------------------
// event handlers