X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6c9a19aabab3a878b565e6c2a5f2a3824277c4dc..70dc287a3997b65d954bfbd5861f72696bd3dd27:/src/msw/stattext.cpp?ds=inline diff --git a/src/msw/stattext.cpp b/src/msw/stattext.cpp index 0da7ce60b3..5248292eea 100644 --- a/src/msw/stattext.cpp +++ b/src/msw/stattext.cpp @@ -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;