]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/radiobut.cpp
more MS-DOS stuff in generic wxFileDialog
[wxWidgets.git] / src / os2 / radiobut.cpp
index 8878abed12d2730a2a89bcdb4c22926c49991a53..83444cd1f0fa7f0f6cc09accff9eb0bb63269e32 100644 (file)
@@ -81,6 +81,15 @@ bool wxRadioButton::Create(
 
     if (m_windowStyle & wxCLIP_SIBLINGS )
         lsStyle |= WS_CLIPSIBLINGS;
+    //
+    // If the parent is a scrolled window the controls must
+    // have this style or they will overlap the scrollbars
+    //
+    if (pParent)
+        if (pParent->IsKindOf(CLASSINFO(wxScrolledWindow)) ||
+            pParent->IsKindOf(CLASSINFO(wxGenericScrolledWindow)))
+            lsStyle |= WS_CLIPSIBLINGS;
+
     m_hWnd = (WXHWND)::WinCreateWindow ( GetHwndOf(pParent)
                                         ,WC_BUTTON
                                         ,rsLabel.c_str()