]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/listbox.cpp
ignore clicks on a toolbar but outside any button
[wxWidgets.git] / src / msw / listbox.cpp
index 9634d400626832c618476b03bebdd601bea0fd4b..24954256fd54f73f8312efd9f97bc993f0889173 100644 (file)
@@ -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
 }