diff --git a/src/msw/slider95.cpp b/src/msw/slider95.cpp index da71dcdfda..6c811b81e0 100644 --- a/src/msw/slider95.cpp +++ b/src/msw/slider95.cpp @@ -98,7 +98,9 @@ bool wxSlider95::Create(wxWindow *parent, wxWindowID id, msStyle |= SS_CENTER; WXDWORD exStyle = 0; - msStyle |= MSWGetStyle(GetWindowStyle(), & exStyle) ; + long valueStyle = m_windowStyle & ~wxBORDER_MASK; + valueStyle |= wxBORDER_SUNKEN; + msStyle |= MSWGetStyle(valueStyle, & exStyle) ; m_staticValue = (WXHWND) CreateWindowEx ( diff --git a/src/msw/tglbtn.cpp b/src/msw/tglbtn.cpp index cac34b1ac9..b73b9aa4eb 100644 --- a/src/msw/tglbtn.cpp +++ b/src/msw/tglbtn.cpp @@ -73,6 +73,12 @@ bool wxToggleButton::Create(wxWindow *parent, wxWindowID id, const wxValidator& validator, const wxString& name) { + // default border for this control is none + if ( (style & wxBORDER_MASK) == wxBORDER_DEFAULT ) + { + style |= wxBORDER_NONE; + } + if (!CreateBase(parent, id, pos, size, style, validator, name)) return FALSE;