]> git.saurik.com Git - wxWidgets.git/commitdiff
wxListCtrl::InsertItem returns the index of the inserted item
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 30 Sep 1999 22:17:02 +0000 (22:17 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 30 Sep 1999 22:17:02 +0000 (22:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listctrl.cpp

index b5d3611d3cbf6f93b58282bb6918b33bf4499edb..34358bb5294e1a285fb2c28dc6f8a270d8b712d1 100644 (file)
@@ -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 )