]> git.saurik.com Git - wxWidgets.git/commitdiff
Corrected wxScrollBar style
authorJulian Smart <julian@anthemion.co.uk>
Sat, 17 May 2003 09:30:00 +0000 (09:30 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sat, 17 May 2003 09:30:00 +0000 (09:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/scrolbar.cpp

index 5ba271ca2f0be9dcc93de82a2df7eb2100eac72c..fccc82bb709e3b3abab6ece0a7080892f232f930 100644 (file)
@@ -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;