From 8f37ed893cf55cfd2c84f875bbbe57687aa06033 Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Thu, 19 Sep 2002 20:06:20 +0000 Subject: [PATCH] Fix wxListEvent::GetLabel git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/listctrl.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index a90cad1bc1..1275a36c95 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -1854,6 +1854,11 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result) const UINT stOld = nmLV->uOldState; const UINT stNew = nmLV->uNewState; + event.m_item.SetId(nmLV->iItem); + event.m_item.SetMask(wxLIST_MASK_TEXT|wxLIST_MASK_IMAGE| + wxLIST_MASK_DATA); + GetItem(event.m_item); + // has the focus changed? if ( !(stOld & LVIS_FOCUSED) && (stNew & LVIS_FOCUSED) ) {