Make wxRenderer::DrawItemSelectionRect() draw a focus outline of wxCONTROL_CURRENT and wxCONTROL_FOCUSED is given, blind patch for wxMac

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49204 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2007-10-17 20:57:01 +00:00
parent e00b31799c
commit ce0cf2b871
6 changed files with 32 additions and 14 deletions

View File

@@ -1541,11 +1541,7 @@ void wxListLineData::DrawInReportMode( wxDC *dc,
if (highlighted)
{
int flags = wxCONTROL_SELECTED;
if (m_owner->HasFocus()
#ifdef __WXMAC__
&& IsControlActive( (ControlRef)m_owner->GetHandle() )
#endif
)
if (m_owner->HasFocus())
flags |= wxCONTROL_FOCUSED;
wxRendererNative::Get().DrawItemSelectionRect( m_owner, *dc, rectHL, flags );
}