Remove the test for parent window type when checking if to give a
sunken style automatically git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
be235d0801
commit
577baeef5a
@ -1043,8 +1043,7 @@ WXDWORD wxWindowMSW::MSWGetStyle(long flags, WXDWORD *exstyle) const
|
||||
|
||||
if (border == wxBORDER_DEFAULT && wxTheApp->GetAuto3D() &&
|
||||
IsKindOf(CLASSINFO(wxControl)) &&
|
||||
GetParent() && (GetParent()->IsKindOf(CLASSINFO(wxPanel)) ||
|
||||
GetParent()->IsKindOf(CLASSINFO(wxDialog))) &&
|
||||
GetParent() &&
|
||||
((GetParent()->GetWindowStyleFlag() & wxUSER_COLOURS) != wxUSER_COLOURS))
|
||||
{
|
||||
border = (wxBorder)((flags & wxBORDER_MASK) | wxBORDER_SUNKEN);
|
||||
|
Loading…
Reference in New Issue
Block a user