- dc.SetTextForeground( wxSystemSettings::GetSystemColour( wxSYS_COLOUR_HIGHLIGHTTEXT ) );
- dc.SetBrush( *m_hilightBrush );
- if (m_hasFocus)
- dc.SetPen( wxBLACK_PEN );
- else
- dc.SetPen( wxTRANSPARENT_PEN );
- long tw = 0;
- long th = 0;
- dc.GetTextExtent( child->m_text, &tw, &th );
- dc.DrawRectangle( child->m_x-2, child->m_y-2, tw+4, th+4 );
- };
-
- dc.DrawText( child->m_text, child->m_x, child->m_y );
+ dc.SetTextForeground( wxSystemSettings::GetSystemColour( wxSYS_COLOUR_HIGHLIGHTTEXT ) );
+ dc.SetBrush( *m_hilightBrush );
+ long tw, th;
+ dc.GetTextExtent( item->m_text, &tw, &th );
+ if (m_hasFocus)
+ {
+ dc.SetPen( *wxBLACK_PEN );
+ dc.DrawRectangle( item->m_x-2, item->m_y-2, tw+4, th+4 );
+ }
+ else
+ {
+ dc.SetPen( *wxTRANSPARENT_PEN );
+ dc.DrawRectangle( item->m_x-2, item->m_y-2, tw+4, th+4 );
+ }
+ dc.DrawText( item->m_text, item->m_x, item->m_y );