set wxDATAVIEW_CELL_SELECTED in flags passed to Render() (patch 1611212)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-12-10 15:37:31 +00:00
parent b517351bc5
commit 64b3c26259

View File

@@ -1196,7 +1196,11 @@ void wxDataViewMainWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
item_rect.width = size.x; item_rect.width = size.x;
item_rect.height= size.y; 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; cell_rect.x += cell_rect.width;