]> git.saurik.com Git - wxWidgets.git/commitdiff
Generic fix for full row highlight
authorJulian Smart <julian@anthemion.co.uk>
Sat, 4 Nov 2006 16:10:28 +0000 (16:10 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sat, 4 Nov 2006 16:10:28 +0000 (16:10 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43036 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/treectlg.cpp

index 1dd90fef81d32c53478107541ebcac8f6b293fe0..71d424699992e6b4719dba84f30e250646507006 100644 (file)
@@ -2231,14 +2231,9 @@ void wxGenericTreeCtrl::PaintItem(wxGenericTreeItem *item, wxDC& dc)
 
     if ( HasFlag(wxTR_FULL_ROW_HIGHLIGHT) )
     {
-        int x, y, w, h;
-        // TODO : using DoGetPosition should be wrong on any platform, the dc is focused on this window
-#ifdef __WXMAC__
-        x=y=0;
-#else
-        DoGetPosition(&x, &y);
-#endif
-        DoGetSize(&w, &h);
+        int x, w, h;
+        x=0;
+        GetVirtualSize(&w, &h);
         dc.DrawRectangle(x, item->GetY()+offset, w, total_h-offset);
     }
     else