]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/scrolbar.cpp
wxFileDialog cleanup, extracted common code to fldlgcmn.cpp (patch 754187)
[wxWidgets.git] / 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;