]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/control.cpp
workaround for blocking behaviour under carbon when running in classic
[wxWidgets.git] / src / msw / control.cpp
index 4d4c0e159f080617c6f68e9e42f3155527f3b4bd..df2d8b11095b5a7d491ca688c8593dfa1922379d 100644 (file)
@@ -106,11 +106,15 @@ bool wxControl::MSWCreateControl(const wxChar *classname,
         style |= WS_VISIBLE;
     }
 
+    // choose the position for the control
     int x = pos.x == -1 ? 0 : pos.x,
         y = pos.y == -1 ? 0 : pos.y,
         w = size.x == -1 ? 0 : size.x,
         h = size.y == -1 ? 0 : size.y;
 
+    // ... and adjust it to account for ap ossible parent frames toolbar
+    AdjustForParentClientOrigin(x, y);
+
     m_hWnd = (WXHWND)::CreateWindowEx
                        (
                         exstyle,            // extended style