X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b826684e26da261f9da490a28c48658938b5fdd2..876262caf1dd81b0e3d9a0c81c10879f6fb256e8:/src/msw/stattext.cpp diff --git a/src/msw/stattext.cpp b/src/msw/stattext.cpp index e34b055958..5248292eea 100644 --- a/src/msw/stattext.cpp +++ b/src/msw/stattext.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 ///////////////////////////////////////////////////////////////////////////// #ifdef __GNUG__ @@ -42,6 +42,10 @@ bool wxStaticText::Create(wxWindow *parent, long style, const wxString& name) { + // By default, a static text should have no border. + if ((style & wxBORDER_MASK) == wxBORDER_DEFAULT) + style |= wxBORDER_NONE; + if ( !CreateControl(parent, id, pos, size, style, wxDefaultValidator, name) ) return FALSE;