X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cfa822b8f1736a137a4189470ec90f4b95095381..81b41c03c6bcbffa9293a0e280729ffaaf9ef2c7:/src/msw/statline.cpp diff --git a/src/msw/statline.cpp b/src/msw/statline.cpp index 7535fee4c4..29ee6373e1 100644 --- a/src/msw/statline.cpp +++ b/src/msw/statline.cpp @@ -64,11 +64,15 @@ bool wxStaticLine::Create(wxWindow *parent, if ( !CreateControl(parent, id, pos, size, style, wxDefaultValidator, name) ) return FALSE; - return MSWCreateControl(_T("STATIC"), _T(""), pos, size, style); + return MSWCreateControl(_T("STATIC"), _T(""), pos, size); } WXDWORD wxStaticLine::MSWGetStyle(long style, WXDWORD *exstyle) const { + // we never have border + style &= ~wxBORDER_MASK; + style |= wxBORDER_NONE; + WXDWORD msStyle = wxControl::MSWGetStyle(style, exstyle); // add our default styles