Auto 3D border if parent is a panel or dialog.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2003-05-12 10:14:43 +00:00
parent 5c8c438c33
commit 7b452d0dc8

View File

@@ -1162,7 +1162,8 @@ WXDWORD wxWindowMSW::MSWGetStyle(long flags, WXDWORD *exstyle) const
// Windows XP. Instead we get the appropriate style for the theme.
if (border == wxBORDER_DEFAULT && wxTheApp->GetAuto3D() &&
GetParent() && GetParent()->IsKindOf(CLASSINFO(wxPanel)) &&
GetParent() && (GetParent()->IsKindOf(CLASSINFO(wxPanel)) ||
GetParent()->IsKindOf(CLASSINFO(wxDialog))) &&
((GetParent()->GetWindowStyleFlag() & wxUSER_COLOURS) != wxUSER_COLOURS))
{
border = (wxBorder)((flags & wxBORDER_MASK) | wxBORDER_SUNKEN);