Set all event fields correctly for drag events in generic wxListCtrl.
Call SendNotify() instead of (ponly partially) duplicating it in the code generating wxEVT_COMMAND_LIST_BEGIN_[R]DRAG. Closes #1582. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70367 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
6627ac2da2
commit
14841e5a8e
@ -2412,12 +2412,7 @@ void wxListMainWindow::OnMouse( wxMouseEvent &event )
|
||||
int command = event.RightIsDown() ? wxEVT_COMMAND_LIST_BEGIN_RDRAG
|
||||
: wxEVT_COMMAND_LIST_BEGIN_DRAG;
|
||||
|
||||
wxListEvent le( command, GetParent()->GetId() );
|
||||
le.SetEventObject( GetParent() );
|
||||
le.m_item.m_itemId =
|
||||
le.m_itemIndex = m_lineLastClicked;
|
||||
le.m_pointDrag = m_dragStart;
|
||||
GetParent()->GetEventHandler()->ProcessEvent( le );
|
||||
SendNotify( m_lineLastClicked, command, m_dragStart );
|
||||
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user