From 09168de7a135c700d3e520ea511a562c7de344d4 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 14 Jun 2002 22:39:38 +0000 Subject: [PATCH] don't use WS_EX_CONTOLPARENT with the top level windows nor wxUniv (doesn't really hurt but is not needed neither) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/window.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 5dc59b9efb..cf7c4277ac 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -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; -- 2.45.2