]> git.saurik.com Git - wxWidgets.git/commitdiff
Adjust the bounding box of the labels to client coordinants
authorRobin Dunn <robin@alldunn.com>
Wed, 19 Jan 2005 22:06:13 +0000 (22:06 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 19 Jan 2005 22:06:13 +0000 (22:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31506 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/slider95.cpp

index 1668ce9f0da5c15272e9f1bf17a3b49228284efd..705ca4bd7f3ae75fdb34c1994c2240d4e696e21c 100644 (file)
@@ -346,7 +346,11 @@ wxRect wxSlider95::GetBoundingBox() const
 
     wxRect rect(x, y, w, h);
     if ( m_labels )
-        rect.Union(m_labels->GetBoundingBox());
+    {
+        wxRect lrect = m_labels->GetBoundingBox();
+        GetParent()->ScreenToClient(&lrect.x, &lrect.y);
+        rect.Union(lrect);
+    }
 
     return rect;
 }