Ejemplo n.º 1
0
bool MyListView::Export (TextWriter &w)
{
	BListItem* ptr;
	MyItem* item;
	int32 id = 0;
	
	if (w.Err() != brOK) return false;
	while ((ptr = ItemAt(id++)) != NULL) {
		item = (MyItem *)ptr;
		w.WriteString(item->LabelStr());
		w.WriteString("\t");
		w.WriteString(item->ContentStr());
		w.WriteLn();
	}
	return true;
}