]> git.saurik.com Git - wxWidgets.git/commitdiff
don't add WS_VISIBLE to all windows style (replaces patch 948992)
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 7 May 2004 22:15:04 +0000 (22:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 7 May 2004 22:15:04 +0000 (22:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27149 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index 48b20868d0b4cd20eb265f3e242c6b395c55396a..b3f509f27cb1b52496e195d49219d5cce0094136 100644 (file)
@@ -1116,8 +1116,11 @@ void wxWindowMSW::SetWindowStyleFlag(long flags)
 
 WXDWORD wxWindowMSW::MSWGetStyle(long flags, WXDWORD *exstyle) const
 {
-    // translate the style
-    WXDWORD style = WS_CHILD | WS_VISIBLE;
+    // translate common wxWindows styles to Windows ones
+
+    // most of windows are child ones, those which are not (such as
+    // wxTopLevelWindow) should remove WS_CHILD in their MSWGetStyle()
+    WXDWORD style = WS_CHILD;
 
     if ( flags & wxCLIP_CHILDREN )
         style |= WS_CLIPCHILDREN;