How do I define IDataObject for VirtualTreeview drag and drop?

280 views Asked by At

I'm working in Delphi 10 Seattle and I have Virtual Treeview version 7.2.1 installed. It's been some years since I needed to drag and drop in a treeview. I created handlers for OnDragOver and OnDragDrop. DragType is dtOLE. DragMode is dmAutomatic.
The problem is that the compiler gives me an error "E2005: IDataObject is not a type identifier." And it isn't defined in VirtualTrees.pas.
What do I do to define IDataObject?

0

There are 0 answers