set item text in LIST_ITEM_ACTIVATED events

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-07-06 21:43:48 +00:00
parent 0119459c53
commit 717562e490

View File

@@ -1437,7 +1437,8 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
if ( lItem != -1 )
{
// fill the client data field too
// fill the other fields too
event.m_item.m_text = GetItemText(lItem);
event.m_item.m_data = GetItemData(lItem);
}
}
@@ -1461,6 +1462,7 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
eventType = wxEVT_COMMAND_LIST_ITEM_ACTIVATED;
event.m_itemIndex = nmLV->iItem;
event.m_item.m_text = GetItemText(nmLV->iItem);
event.m_item.m_data = GetItemData(nmLV->iItem);
break;