git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38300
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
myCanvas = new MyCanvas(frame);
myCanvas->SetBackgroundColour(*wxWHITE);
myCanvas = new MyCanvas(frame);
myCanvas->SetBackgroundColour(*wxWHITE);
// Show the frame
frame->Show(true);
// Show the frame
frame->Show(true);
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
-// Name: common/toplvcmn.cpp
+// Name: src/common/toplvcmn.cpp
// Purpose: common (for all platforms) wxTopLevelWindow functions
// Author: Julian Smart, Vadim Zeitlin
// Created: 01/02/97
// Purpose: common (for all platforms) wxTopLevelWindow functions
// Author: Julian Smart, Vadim Zeitlin
// Created: 01/02/97
rectParent = rectDisplay;
}
rectParent = rectDisplay;
}
+ // centering maximized window on screen is no-op
+ if((rectParent == rectDisplay) && IsMaximized())
+ return;
+
// the new window rect candidate
wxRect rect = GetRect().CentreIn(rectParent, dir);
// the new window rect candidate
wxRect rect = GetRect().CentreIn(rectParent, dir);
// it's probably better than do nothing, isn't it?
Raise();
}
// it's probably better than do nothing, isn't it?
Raise();
}
bool wxTopLevelWindowMSW::IsMaximized() const
{
bool wxTopLevelWindowMSW::IsMaximized() const
{
-#ifdef __WXWINCE__
- return false;
+#if defined(__SMARTPHONE__) || defined(__POCKETPC__)
+ return true;
#else
return m_maximizeOnShow || ::IsZoomed(GetHwnd()) != 0;
#endif
#else
return m_maximizeOnShow || ::IsZoomed(GetHwnd()) != 0;
#endif