]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/toplevel.cpp
Added SW_SCROLLCHILDREN to make scrolling work
[wxWidgets.git] / src / msw / toplevel.cpp
index ecbe186ed7ede3126cad75ada1c69727194c502a..ee7bed0b1feffe533b2af7b33a3ac26a40459c36 100644 (file)
@@ -31,6 +31,7 @@
 #ifndef WX_PRECOMP
     #include "wx/app.h"
     #include "wx/toplevel.h"
+    #include "wx/dialog.h"
     #include "wx/string.h"
     #include "wx/log.h"
     #include "wx/intl.h"
@@ -151,6 +152,10 @@ WXDWORD wxTopLevelWindowMSW::MSWGetStyle(long style, WXDWORD *exflags) const
                         (style & ~wxBORDER_MASK) | wxBORDER_NONE, exflags
                       ) & ~WS_CHILD & ~WS_VISIBLE;
 
+#if defined(__WXWINCE__) && _WIN32_WCE < 400
+    msflags |= WS_VISIBLE;
+#endif
+
     // first select the kind of window being created
     //
     // note that if we don't set WS_POPUP, Windows assumes WS_OVERLAPPED and