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:
@@ -103,7 +103,7 @@ class WXDLLIMPEXP_CORE wxListCtrl: public wxControl
|
|||||||
bool SetItemColumnImage(long item, long column, int image);
|
bool SetItemColumnImage(long item, long column, int image);
|
||||||
|
|
||||||
// Gets the item text
|
// Gets the item text
|
||||||
wxString GetItemText(long item) const ;
|
wxString GetItemText(long item, int int col = 0) const ;
|
||||||
|
|
||||||
// Sets the item text
|
// Sets the item text
|
||||||
void SetItemText(long item, const wxString& str) ;
|
void SetItemText(long item, const wxString& str) ;
|
||||||
|
@@ -1350,15 +1350,16 @@ bool wxListCtrl::SetItemColumnImage(long item, long column, int image)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Gets the item text
|
// Gets the item text
|
||||||
wxString wxListCtrl::GetItemText(long item) const
|
wxString wxListCtrl::GetItemText(long item, int column) const
|
||||||
{
|
{
|
||||||
if (m_genericImpl)
|
if (m_genericImpl)
|
||||||
return m_genericImpl->GetItemText(item);
|
return m_genericImpl->GetItemText(item, column);
|
||||||
|
|
||||||
wxListItem info;
|
wxListItem info;
|
||||||
|
|
||||||
info.m_mask = wxLIST_MASK_TEXT;
|
info.m_mask = wxLIST_MASK_TEXT;
|
||||||
info.m_itemId = item;
|
info.m_itemId = item;
|
||||||
|
info.m_col = column;
|
||||||
|
|
||||||
if (!GetItem(info))
|
if (!GetItem(info))
|
||||||
return wxEmptyString;
|
return wxEmptyString;
|
||||||
|
Reference in New Issue
Block a user