]> git.saurik.com Git - wxWidgets.git/blobdiff - src/aui/framemanager.cpp
move frame decorations drawing to the base class
[wxWidgets.git] / src / aui / framemanager.cpp
index 25e9ebbfc99030fc0b932983692df8cbdf998083..3dc1ac038bed85c83445b10a5eac88c39b175fc3 100644 (file)
@@ -562,7 +562,7 @@ wxDockUIPart* wxFrameManager::HitTest(int x, int y)
             continue;
 
         // if the point is inside the rectangle, we have a hit
             continue;
 
         // if the point is inside the rectangle, we have a hit
-        if (item->rect.Inside(x,y))
+        if (item->rect.Contains(x,y))
             result = item;
     }
 
             result = item;
     }
 
@@ -2371,7 +2371,7 @@ bool wxFrameManager::DoDrop(wxDockInfoArray& docks,
         // should float if being dragged over center pane windows
         if (!part->dock->fixed || part->dock->dock_direction == wxAUI_DOCK_CENTER)
         {
         // should float if being dragged over center pane windows
         if (!part->dock->fixed || part->dock->dock_direction == wxAUI_DOCK_CENTER)
         {
-            if (m_last_rect.IsEmpty() || m_last_rect.Inside(pt.x, pt.y ))
+            if (m_last_rect.IsEmpty() || m_last_rect.Contains(pt.x, pt.y ))
             {
                 m_skipping = true;
             }
             {
                 m_skipping = true;
             }