From e0b9ad2982c05e79f8e221a16e0622233a324bdb Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Mon, 26 May 2003 22:15:25 +0000 Subject: [PATCH] Further border style corrections. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/statbmp.cpp | 6 ++++++ src/msw/window.cpp | 1 + 2 files changed, 7 insertions(+) diff --git a/src/msw/statbmp.cpp b/src/msw/statbmp.cpp index fa803fe344..db1d8b11d3 100644 --- a/src/msw/statbmp.cpp +++ b/src/msw/statbmp.cpp @@ -98,6 +98,12 @@ bool wxStaticBitmap::Create(wxWindow *parent, long style, const wxString& name) { + // default border for this control is none + if ( (style & wxBORDER_MASK) == wxBORDER_DEFAULT ) + { + style |= wxBORDER_NONE; + } + if ( !CreateControl(parent, id, pos, size, style, wxDefaultValidator, name) ) return FALSE; diff --git a/src/msw/window.cpp b/src/msw/window.cpp index ec90c5d2b7..feee0853de 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -1034,6 +1034,7 @@ 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() && + IsKindOf(CLASSINFO(wxControl)) && GetParent() && (GetParent()->IsKindOf(CLASSINFO(wxPanel)) || GetParent()->IsKindOf(CLASSINFO(wxDialog))) && ((GetParent()->GetWindowStyleFlag() & wxUSER_COLOURS) != wxUSER_COLOURS)) -- 2.45.2