]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't always maximize top-level windows on Smartphone
authorJulian Smart <julian@anthemion.co.uk>
Wed, 6 Apr 2005 21:15:17 +0000 (21:15 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 6 Apr 2005 21:15:17 +0000 (21:15 +0000)
Don't initially hide frame under Smartphone (sometimes causes the title not to show)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/toplevel.cpp

index 374c929e2661366e031145118ed1309c648550ce..04f8e5de1f455282669b236747d9e16da65541c0 100644 (file)
@@ -447,10 +447,6 @@ bool wxTopLevelWindowMSW::CreateFrame(const wxString& title,
 
     bool result = MSWCreate(wxCanvasClassName, title, pos, sz, flags, exflags);
 
-#ifdef __SMARTPHONE__
-    // Work around title non-display glitch
-    Show(false);
-#endif
     return result;
 }
 
@@ -551,10 +547,7 @@ bool wxTopLevelWindowMSW::Create(wxWindow *parent,
     // Note: if we include PocketPC in this test, dialogs can fail to show up,
     // for example the text entry dialog in the dialogs sample. Problem with Maximise()?
 #if defined(__WXWINCE__) && (defined(__SMARTPHONE__) || defined(__WINCE_STANDARDSDK__))
-    // Smartphone dialogs should always be maximized.
-#if !defined(__SMARTPHONE__)
     if ( style & wxMAXIMIZE )
-#endif
     {
         this->Maximize();
     }