git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11306
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
const wxRect& rectHL,
bool highlighted )
{
const wxRect& rectHL,
bool highlighted )
{
- // use our own flag if we maintain it
- if ( !IsVirtual() )
- highlighted = m_highlighted;
-
// TODO: later we should support setting different attributes for
// different columns - to do it, just add "col" argument to
// GetAttr() and move these lines into the loop below
// TODO: later we should support setting different attributes for
// different columns - to do it, just add "col" argument to
// GetAttr() and move these lines into the loop below
GetLine(line)->DrawInReportMode( &dc,
rectLine,
GetLineHighlightRect(line),
GetLine(line)->DrawInReportMode( &dc,
rectLine,
GetLineHighlightRect(line),
+ m_hasFocus && IsHighlighted(line) );
}
if ( HasFlag(wxLC_HRULES) )
}
if ( HasFlag(wxLC_HRULES) )
- if ( HasCurrent() && m_hasFocus )
+ // don't draw rect outline under Max if we already have the background
+ // color
- // no rect outline, we already have the background color
-#else
- dc.SetPen( *wxBLACK_PEN );
- dc.SetBrush( *wxTRANSPARENT_BRUSH );
- dc.DrawRectangle( GetLineHighlightRect(m_current) );
-#endif
+ if ( !m_hasFocus )
+#endif // !__WXMAC__
+ {
+ dc.SetPen( *wxBLACK_PEN );
+ dc.SetBrush( *wxTRANSPARENT_BRUSH );
+ dc.DrawRectangle( GetLineHighlightRect(m_current) );
+ }