wxListCtrl sends event directly again. Also fixed problem

of list otem status not being up-to-date when events
    get sent.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 1999-12-07 15:47:55 +00:00
parent d84b26a7b9
commit 6e228e42e2

View File

@ -710,11 +710,11 @@ void wxListLineData::DoDraw( wxDC *dc, bool hilight, bool paintBG )
void wxListLineData::Hilight( bool on )
{
if (on == m_hilighted) return;
m_hilighted = on;
if (on)
m_owner->SelectLine( this );
else
m_owner->DeselectLine( this );
m_hilighted = on;
}
void wxListLineData::ReverseHilight( void )
@ -1258,8 +1258,8 @@ void wxListMainWindow::SendNotify( wxListLineData *line, wxEventType command )
le.SetEventObject( GetParent() );
le.m_itemIndex = GetIndexOfLine( line );
line->GetItem( 0, le.m_item );
// GetParent()->GetEventHandler()->ProcessEvent( le );
GetParent()->GetEventHandler()->AddPendingEvent( le );
GetParent()->GetEventHandler()->ProcessEvent( le );
// GetParent()->GetEventHandler()->AddPendingEvent( le );
}
void wxListMainWindow::FocusLine( wxListLineData *WXUNUSED(line) )