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:
parent
3bfba421c7
commit
dfdad1f936
@ -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) ;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user