X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1b1ca07a708a2375c3fa6a568c1e29a710d6d56a..5e0d7b6bce53ad3ceb3c832925c25d2e614a0d62:/src/msw/window.cpp diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 45b1156215..21a1c344cd 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -1035,7 +1035,7 @@ WXDWORD wxWindowMSW::MSWGetStyle(long flags, WXDWORD *exstyle) const // is a more neutral term, we don't necessarily get a sunken effect in // Windows XP. Instead we get the appropriate style for the theme. - if (border == wxBORDER_DEFAULT && wxTheApp->GetAuto3D() && + if (border == wxBORDER_DEFAULT && IsKindOf(CLASSINFO(wxControl)) && GetParent() && ((GetParent()->GetWindowStyleFlag() & wxUSER_COLOURS) != wxUSER_COLOURS))