From: Julian Smart Date: Sat, 17 May 2003 09:30:00 +0000 (+0000) Subject: Corrected wxScrollBar style X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7051e6c79c44efd115f24ab06d27ea5c0bc02f3d Corrected wxScrollBar style git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/scrolbar.cpp b/src/msw/scrolbar.cpp index 5ba271ca2f..fccc82bb70 100644 --- a/src/msw/scrolbar.cpp +++ b/src/msw/scrolbar.cpp @@ -53,6 +53,9 @@ bool wxScrollBar::Create(wxWindow *parent, wxWindowID id, SetValidator(validator); #endif // wxUSE_VALIDATORS + if ((style & wxBORDER_MASK) == wxBORDER_DEFAULT) + style |= wxNO_BORDER; + SetBackgroundColour(parent->GetBackgroundColour()) ; SetForegroundColour(parent->GetForegroundColour()) ; m_windowStyle = style;