- wxHtmlRenderingState htmlRendState(&htmlSel);
- htmlRendState.SetSelectionState(wxHTML_SEL_IN);
- cell->Draw(dc, rect.x, rect.y, 0, INT_MAX, htmlRendState);
- }
- else
- {
- // note that we can't stop drawing exactly at the window boundary as then
- // even the visible cells part could be not drawn, so always draw the
- // entire cell
- wxHtmlRenderingState htmlRendState(NULL);
- cell->Draw(dc, rect.x, rect.y, 0, INT_MAX, htmlRendState);
+ htmlRendInfo.SetSelection(&htmlSel);
+ if ( m_htmlRendStyle )
+ htmlRendInfo.SetStyle(m_htmlRendStyle);
+ htmlRendInfo.GetState().SetSelectionState(wxHTML_SEL_IN);