git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14345
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
WXDWORD wxStaticLine::MSWGetStyle(long style, WXDWORD *exstyle) const
{
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
WXDWORD msStyle = wxControl::MSWGetStyle(style, exstyle);
// add our default styles
WXDWORD wxTextCtrl::MSWGetStyle(long style, WXDWORD *exstyle) const
{
WXDWORD wxTextCtrl::MSWGetStyle(long style, WXDWORD *exstyle) const
{
+ // default border for the text controls is the sunken one
+ if ( (style & wxBORDER_MASK) == wxBORDER_DEFAULT )
+ {
+ style |= wxBORDER_SUNKEN;
+ }
+
long msStyle = wxControl::MSWGetStyle(style, exstyle);
// default styles
long msStyle = wxControl::MSWGetStyle(style, exstyle);
// default styles
if ( flags & wxCLIP_SIBLINGS )
style |= WS_CLIPSIBLINGS;
if ( flags & wxCLIP_SIBLINGS )
style |= WS_CLIPSIBLINGS;
- if ( (flags & wxBORDER_MASK) != wxBORDER_NONE )
+ wxBorder border = (wxBorder)(flags & wxBORDER_MASK);
+ if ( border != wxBORDER_NONE && border != wxBORDER_DEFAULT )
style |= WS_BORDER;
// now deal with ext style if the caller wants it
style |= WS_BORDER;
// now deal with ext style if the caller wants it
case wxBORDER_NONE:
case wxBORDER_SIMPLE:
case wxBORDER_NONE:
case wxBORDER_SIMPLE:
break;
case wxBORDER_STATIC:
break;
case wxBORDER_STATIC:
*exstyle |= WS_EX_WINDOWEDGE;
break;
*exstyle |= WS_EX_WINDOWEDGE;
break;
case wxBORDER_SUNKEN:
*exstyle |= WS_EX_CLIENTEDGE;
break;
case wxBORDER_SUNKEN:
*exstyle |= WS_EX_CLIENTEDGE;
break;