]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/scrolbar.cpp
corrected use of Print Manager Session APIs for Carbon targets
[wxWidgets.git] / src / msw / scrolbar.cpp
index 607c116a1e40ecf3f579d2c0f7445ede8f1f97c4..de8ae01ae0d2e60c646ce3495d5ab3841eebcff8 100644 (file)
@@ -81,11 +81,16 @@ bool wxScrollBar::Create(wxWindow *parent, wxWindowID id,
         height = 14;
     }
 
+    DWORD wstyle = WS_VISIBLE | WS_CHILD;
+
+    if ( m_windowStyle & wxCLIP_SIBLINGS )
+      wstyle |= WS_CLIPSIBLINGS;
+
     // Now create scrollbar
     DWORD _direction = (style & wxHORIZONTAL) ?
                         SBS_HORZ: SBS_VERT;
     HWND scroll_bar = CreateWindowEx(MakeExtendedStyle(style), wxT("SCROLLBAR"), wxT("scrollbar"),
-                         _direction | WS_CHILD | WS_VISIBLE,
+                         _direction | wstyle,
                          0, 0, 0, 0, (HWND) parent->GetHWND(), (HMENU)m_windowId,
                          wxGetInstance(), NULL);