- wxRect rect2( m_gi->m_rectHighlight );
- m_owner->CalcScrolledPosition( rect2.x, rect2.y, &rect2.x, &rect2.y );
-
- gtk_paint_flat_box( m_owner->m_widget->style,
- GTK_PIZZA(m_owner->m_wxwindow)->bin_window,
- GTK_STATE_SELECTED,
- GTK_SHADOW_NONE,
- NULL,
- m_owner->m_wxwindow,
- "cell_even",
- rect2.x, rect2.y, rect2.width, rect2.height );
+ int flags = wxCONTROL_SELECTED;
+ if (m_owner->HasFocus())
+ flags |= wxCONTROL_FOCUSED;
+ wxRendererNative::Get().DrawItemSelectionRect( m_owner, *dc, m_gi->m_rectHighlight, flags );
+