From: Vadim Zeitlin Date: Thu, 30 Sep 1999 22:17:02 +0000 (+0000) Subject: wxListCtrl::InsertItem returns the index of the inserted item X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2ebcd5f5fd47cd16915ff3b08c0253f79a1d2220?hp=5e014a0c44e36efe429bea1303f4309af287eb77 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 --- 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 )