]> git.saurik.com Git - wxWidgets.git/commitdiff
set wxDATAVIEW_CELL_SELECTED in flags passed to Render() (patch 1611212)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 10 Dec 2006 15:37:31 +0000 (15:37 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 10 Dec 2006 15:37:31 +0000 (15:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/datavgen.cpp

index 771dab7a474a134ba1116c31b775d4cac50796be..6e22f1e1cf8a2af97e65074ac0cc48d5109a142d 100644 (file)
@@ -1196,7 +1196,11 @@ void wxDataViewMainWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
 
             item_rect.width = size.x;
             item_rect.height= size.y;
-            cell->Render( item_rect, &dc, 0 );
+
+            int state = 0;
+            if (item == m_currentRow)
+                state |= wxDATAVIEW_CELL_SELECTED;
+            cell->Render( item_rect, &dc, state );
         }
 
         cell_rect.x += cell_rect.width;