X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6dd16e4f26490f1f4f2be1204840cbf4ecf74a35..0b49ccf8d66e2568e2b0de85c25b406aad39f3b1:/src/msw/statbmp.cpp diff --git a/src/msw/statbmp.cpp b/src/msw/statbmp.cpp index 52dc1c5bbc..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;