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