translate pascal to c++
问题 The following code runs in the ItemClickEx event of a firemonkey ListView. I want to know how to do this in C++. procedure TfrmCategory.lstListCategoryItemClickEx(const Sender: TObject; ItemIndex: Integer; const LocalClickPos: TPointF; const ItemObject: TListItemObject); begin if ItemObject is TListItemAccessory then begin ShowMessage('Acessory clicked'); end; end; Source: link here. I don't know how to do the "if ItemObject is TListItemAccessory" in c++. 回答1: The C++ equivalent to Delphi's