]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/toplevel.cpp
wxMGL fixes.
[wxWidgets.git] / src / msw / toplevel.cpp
index 914f6fe15d2d0ebc970b4151f4ac5fe9343b07da..40a506ca96e9201856471a162c542460fdb8d8fc 100644 (file)
@@ -593,10 +593,14 @@ bool wxTopLevelWindowMSW::Create(wxWindow *parent,
         MSWUpdateUIState(UIS_INITIALIZE);
     }
 
+    // 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__))
     if ( ( style & wxMAXIMIZE ) || IsAlwaysMaximized() )
     {
         this->Maximize();
     }
+#endif
 
 #if defined(__SMARTPHONE__) && defined(__WXWINCE__)
     SetRightMenu(); // to nothing for initialization