Add column parameter to wxListCtrl::GetItemText().

Allow retrieving the text from columns other than the first one directly.

Add implementations for MSW and generic versions, documentation and a unit
test.

Closes #11597.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2010-05-10 21:22:16 +00:00
parent 654e324628
commit b6812a6f19
7 changed files with 29 additions and 6 deletions

View File

@@ -449,8 +449,14 @@ public:
/**
Gets the item text for this item.
@param item
Item (zero-based) index.
@param col
Item column (zero-based) index. Column 0 is the default. This
parameter is new in wxWidgets 2.9.1.
*/
wxString GetItemText(long item) const;
wxString GetItemText(long item, int col = 0) const;
/**
Returns the colour for this item.