]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/window.cpp
upgraded builtin zlib to 1.2.1
[wxWidgets.git] / src / msw / window.cpp
index b7c5b66709171c9a6129c1a4c45fd136c29791c1..48b20868d0b4cd20eb265f3e242c6b395c55396a 100644 (file)
@@ -3059,12 +3059,26 @@ bool wxWindowMSW::MSWGetCreateWindowCoords(const wxPoint& pos,
     //     level window in some smart way which we can't do, but we can
     //     guess a reasonably good size for a new window just as well
     //     ourselves
+
+       // However, on PocketPC devices, we must use the default
+       // size if possible.
+#ifdef _WIN32_WCE
+       if (size.x == -1)
+               w = CW_USEDEFAULT;
+       else
+               w = size.x;
+       if (size.y == -1)
+               h = CW_USEDEFAULT;
+       else
+               h = size.y;
+#else
     if ( size.x == -1 || size.y == -1)
     {
         nonDefault = true;
     }
     w = WidthDefault(size.x);
     h = HeightDefault(size.y);
+#endif
 
     AdjustForParentClientOrigin(x, y);