]> git.saurik.com Git - wxWidgets.git/commitdiff
Auto 3D border if parent is panel or dialog
authorJulian Smart <julian@anthemion.co.uk>
Mon, 12 May 2003 10:04:46 +0000 (10:04 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 12 May 2003 10:04:46 +0000 (10:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index 1da351142c9f5579df63cff931be33fe5a7c25be..babca8cf0052695c558aa5cec03516a3d27d7c72 100644 (file)
@@ -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);