From 6e228e42e2f17c052f87b99c26d29b7841436e2e Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Tue, 7 Dec 1999 15:47:55 +0000 Subject: [PATCH] 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 --- src/generic/listctrl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 032bb8344b..30ef6ea2a6 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -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) )