adapting to new API

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor 2010-05-20 12:06:48 +00:00
parent 3bfba421c7
commit dfdad1f936
2 changed files with 4 additions and 3 deletions

View File

@ -103,7 +103,7 @@ class WXDLLIMPEXP_CORE wxListCtrl: public wxControl
bool SetItemColumnImage(long item, long column, int image);
// Gets the item text
wxString GetItemText(long item) const ;
wxString GetItemText(long item, int int col = 0) const ;
// Sets the item text
void SetItemText(long item, const wxString& str) ;

View File

@ -1350,15 +1350,16 @@ bool wxListCtrl::SetItemColumnImage(long item, long column, int image)
}
// Gets the item text
wxString wxListCtrl::GetItemText(long item) const
wxString wxListCtrl::GetItemText(long item, int column) const
{
if (m_genericImpl)
return m_genericImpl->GetItemText(item);
return m_genericImpl->GetItemText(item, column);
wxListItem info;
info.m_mask = wxLIST_MASK_TEXT;
info.m_itemId = item;
info.m_col = column;
if (!GetItem(info))
return wxEmptyString;