- dc.SetTextForeground( *wxBLACK );
- dc.SetBrush( *wxWHITE_BRUSH );
- dc.SetPen( *wxBLACK_PEN );
- };
-
+ dc.SetTextForeground( wxSystemSettings::GetSystemColour( wxSYS_COLOUR_HIGHLIGHTTEXT ) );
+#if 0 // VZ: this code leaves horizontal stripes when item is unselected
+ dc.SetBrush( *m_hilightBrush );
+ if (m_hasFocus)
+ dc.SetPen( wxBLACK_PEN );
+ else
+ dc.SetPen( wxTRANSPARENT_PEN );
+ long tw, th;
+ dc.GetTextExtent( child->m_text, &tw, &th );
+ dc.DrawRectangle( child->m_x-2, child->m_y-2, tw+4, th+4 );
+#else
+ int modeOld = dc.GetBackgroundMode();
+ dc.SetTextBackground( *wxBLACK );
+ dc.SetBackgroundMode(wxSOLID);
+#endif // 0
+
+ dc.DrawText( child->m_text, child->m_x, child->m_y );
+
+#if 0 // VZ: same as above
+ dc.SetPen( *wxBLACK_PEN );
+#else
+ dc.SetBackgroundMode(modeOld);
+ dc.SetTextBackground( *wxWHITE );
+ dc.SetBrush( *wxWHITE_BRUSH );
+#endif
+ dc.SetTextForeground( *wxBLACK );
+ }
+ else
+ dc.DrawText( child->m_text, child->m_x, child->m_y );