From 31e7e89fdd63e58cc079f19fcb5491e9addec145 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Wed, 7 May 2003 15:03:11 +0000 Subject: [PATCH] Fixed style glitches git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/toplevel.cpp | 2 +- src/msw/window.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/msw/toplevel.cpp b/src/msw/toplevel.cpp index 24498607f2..b12a323c5a 100644 --- a/src/msw/toplevel.cpp +++ b/src/msw/toplevel.cpp @@ -141,7 +141,7 @@ WXDWORD wxTopLevelWindowMSW::MSWGetStyle(long style, WXDWORD *exflags) const WXDWORD msflags = wxWindow::MSWGetStyle ( (style & ~wxBORDER_MASK) | wxBORDER_NONE, exflags - ) & ~WS_CHILD; + ) & ~WS_CHILD & ~WS_VISIBLE; // first select the kind of window being created // diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 5cb28ac354..c715296bcf 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -1171,7 +1171,8 @@ 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() && GetParent() && + if (border == wxBORDER_DEFAULT && wxTheApp->GetAuto3D() && + GetParent() && GetParent()->IsKindOf(CLASSINFO(wxPanel)) && ((GetParent()->GetWindowStyleFlag() & wxUSER_COLOURS) != wxUSER_COLOURS)) { border = (wxBorder)((flags & wxBORDER_MASK) | wxBORDER_SUNKEN); -- 2.45.2