]> git.saurik.com Git - wxWidgets.git/commitdiff
Further border style corrections.
authorJulian Smart <julian@anthemion.co.uk>
Mon, 26 May 2003 22:15:25 +0000 (22:15 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 26 May 2003 22:15:25 +0000 (22:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/statbmp.cpp
src/msw/window.cpp

index fa803fe344fd3e0032ed4e4b7fb88fa2a488c95c..db1d8b11d35f10aac847e1685220d7fdf4835183 100644 (file)
@@ -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;
 
index ec90c5d2b733e66f1ee4ae3e352ca105bfd83a79..feee0853de3e66dd9fa46e23fe99dc64fd08dc11 100644 (file)
@@ -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))