X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1b086de1460fd46c21a432ac3d8dec2759e5d05a..6a44bffd1ac68163e4c1cfe8aa8fe4f7f98a02e7:/src/os2/control.cpp?ds=sidebyside diff --git a/src/os2/control.cpp b/src/os2/control.cpp index 086830056c..3ed6d787a0 100644 --- a/src/os2/control.cpp +++ b/src/os2/control.cpp @@ -20,6 +20,7 @@ #include "wx/event.h" #include "wx/app.h" #include "wx/dcclient.h" +#include "wx/scrolwin.h" #endif #include "wx/os2/private.h" #include "wx/control.h" @@ -139,15 +140,6 @@ bool wxControl::OS2CreateControl( zClass = WC_BUTTON; dwStyle |= WS_VISIBLE; - // - // 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))) - dwStyle |= WS_CLIPSIBLINGS; - m_hWnd = (WXHWND)::WinCreateWindow( (HWND)GetHwndOf(pParent) // Parent window handle ,(PSZ)zClass // Window class ,(PSZ)rsLabel.c_str() // Initial Text