vs2022
I have 3 columns of data in my listview. when I use GetItem(), I'm only getting the first (0) column.
Here's how I'm setting the data:
/
Code: Select all
/
auto pos = it->first.find(".");
auto rtn = it->first.substr(0, pos - 1);
long iData = InsertItem(row, rtn);
SetItem(row, 1, it->second.path);
SetItem(row, 2, it->second.pathAndName);
Code: Select all
Bind(wxEVT_LIST_ITEM_SELECTED, [this](wxListEvent& event)
{
onSelection(event.GetItem());
});
Code: Select all
void BRoutineListView::onSelection(wxListItem item)
{
int i = 0;
}
I'd apprectiate any help.