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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user