From c294f450212a499e4df1074ab31f30f96745e3ae Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 11 Feb 2002 23:11:53 +0000 Subject: [PATCH] bugfix for SetString in a wxCheckListBox git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/listbox.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/msw/listbox.cpp b/src/msw/listbox.cpp index 9634d40062..24954256fd 100644 --- a/src/msw/listbox.cpp +++ b/src/msw/listbox.cpp @@ -563,8 +563,12 @@ void wxListBox::SetString(int N, const wxString& s) #if wxUSE_OWNER_DRAWN if ( m_windowStyle & wxLB_OWNERDRAW ) + { // 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 }