From 2ebcd5f5fd47cd16915ff3b08c0253f79a1d2220 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 30 Sep 1999 22:17:02 +0000 Subject: [PATCH] wxListCtrl::InsertItem returns the index of the inserted item git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/listctrl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index b5d3611d3c..34358bb529 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -2876,7 +2876,7 @@ long wxListCtrl::HitTest( const wxPoint &point, int &flags ) long wxListCtrl::InsertItem( wxListItem& info ) { m_mainWin->InsertItem( info ); - return 0; + return info.m_itemId; } long wxListCtrl::InsertItem( long index, const wxString &label ) -- 2.47.2