]> git.saurik.com Git - wxWidgets.git/commitdiff
don't use WS_EX_CONTOLPARENT with the top level windows nor wxUniv (doesn't really...
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 14 Jun 2002 22:39:38 +0000 (22:39 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 14 Jun 2002 22:39:38 +0000 (22:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index 5dc59b9efb0e6007429af68fdbe7f16c1f8be831..cf7c4277ac81302bc7927295f17fa2eb48cf5f58 100644 (file)
@@ -1164,12 +1164,15 @@ WXDWORD wxWindowMSW::MSWGetStyle(long flags, WXDWORD *exstyle) const
                 break;
         }
 
+        // wxUniv doesn't use Windows dialog navigation functions at all
+#ifndef __WXUNIVERSAL__
         // to make the dialog navigation work with the nested panels we must
-        // use this style
-        if ( flags & wxTAB_TRAVERSAL )
+        // use this style (top level windows such as dialogs don't need it)
+        if ( (flags & wxTAB_TRAVERSAL) && !IsTopLevel() )
         {
             *exstyle |= WS_EX_CONTROLPARENT;
         }
+#endif // __WXUNIVERSAL__
     }
 
     return style;