From: Julian Smart Date: Mon, 12 May 2003 10:04:46 +0000 (+0000) Subject: Auto 3D border if parent is panel or dialog X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/975ee4b4a967ca5714384150a7085dd3f1b5b366 Auto 3D border if parent is panel or dialog git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 1da351142c..babca8cf00 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -1032,7 +1032,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);