X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fe3d9123c6968b452a95133c635069d6f7ae8ea5..1dde66dda68a3d712d2f4de0388c4bb3a3375b36:/src/msw/stattext.cpp diff --git a/src/msw/stattext.cpp b/src/msw/stattext.cpp index 5248292eea..5bfc2f0e92 100644 --- a/src/msw/stattext.cpp +++ b/src/msw/stattext.cpp @@ -42,10 +42,6 @@ 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; @@ -55,6 +51,11 @@ bool wxStaticText::Create(wxWindow *parent, return TRUE; } +wxBorder wxStaticText::GetDefaultBorder() const +{ + return wxBORDER_NONE; +} + WXDWORD wxStaticText::MSWGetStyle(long style, WXDWORD *exstyle) const { WXDWORD msStyle = wxControl::MSWGetStyle(style, exstyle);