X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/46a5e01e86793839f256c978bd7d30ab2192b2c9..c15d9c859c64f28c56d1e61b7d031a74e6018583:/src/msw/statbmp.cpp?ds=sidebyside diff --git a/src/msw/statbmp.cpp b/src/msw/statbmp.cpp index 7adde1d63e..db1d8b11d3 100644 --- a/src/msw/statbmp.cpp +++ b/src/msw/statbmp.cpp @@ -5,8 +5,8 @@ // Modified by: // Created: 04/01/98 // RCS-ID: $Id$ -// Copyright: (c) Julian Smart and Markus Holzem -// Licence: wxWindows license +// Copyright: (c) Julian Smart +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // =========================================================================== @@ -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; @@ -122,7 +128,7 @@ bool wxStaticBitmap::Create(wxWindow *parent, #else // Win16 _T("BUTTON"), #endif // Win32/16 - _T(""), pos, size, style) ) + _T(""), pos, size) ) { // control creation failed return FALSE;