git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14140
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#if wxUSE_OWNER_DRAWN
if ( m_windowStyle & wxLB_OWNERDRAW )
#if wxUSE_OWNER_DRAWN
if ( m_windowStyle & wxLB_OWNERDRAW )
// update item's text
m_aItems[N]->SetName(s);
// update item's text
m_aItems[N]->SetName(s);
+ // reassign the item's data
+ ListBox_SetItemData(GetHwnd(), N, m_aItems[N]);
+ }
#endif //USE_OWNER_DRAWN
}
#endif //USE_OWNER_DRAWN
}