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
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user