]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/control.cpp
Added mouse event handler invocations
[wxWidgets.git] / src / os2 / control.cpp
index 5b74ae803ef28a308b6d25f4bbab383b10dd787d..09bf756b6f4e842414dd245a795b3488e1075e38 100644 (file)
@@ -131,6 +131,9 @@ bool wxControl::OS2CreateControl( const wxChar*   zClassname,
     else
         label = m_label;
 
+    // clipping siblings does not yet work
+    dwStyle &= ~WS_CLIPSIBLINGS;
+
     m_hWnd = (WXHWND)::WinCreateWindow( (HWND)GetHwndOf(pParent) // Parent window handle
                                        ,(PSZ)zClass              // Window class
                                        ,(PSZ)label.c_str()       // Initial Text
@@ -224,7 +227,7 @@ WXDWORD wxControl::OS2GetStyle( long lStyle, WXDWORD* pdwExstyle ) const
 {
     long dwStyle = wxWindow::OS2GetStyle( lStyle, pdwExstyle );
 
-    if (AcceptsFocus())
+    if (AcceptsFocusFromKeyboard())
     {
         dwStyle |= WS_TABSTOP;
     }