Add Header to TListView in c++ (firemonkey)


It is easy to find examples to add a Header item to a TListView in Delphi. I’m having no luck finding such for c++. I’m trying to translate this code from Object Pas to c++ but I can’t figure out a translation for the “Purpose.Header”.

with ListView1.Items.Add do
Text := Format(‘Header %d’, [Group]);
Purpose := TListItemPurpose.Header;

In c++ I have this:

TListViewItem* item = ListView1->Items->Add();
item->Purpose = ?????????? // this is the line I need syntax for
item->Text = “My Header”;

Comments are closed.