TBaseVirtualTree.ProcessOLEData Method

Virtual Tree View

Takes serialized OLE tree data and reconstructs the former structure.

Pascal
function ProcessOLEData(Source: TBaseVirtualTree; DataObject: IDataObject; TargetNode: PVirtualNode; Mode: TVTNodeAttachMode; Optimized: Boolean): Boolean;
Description

PrcessOLEData recreates the (sub) tree structure serialized into memory and provided by DataObject. The new nodes are attached to the passed node or the hidden root node if TargetNode is nil, according to Mode. Optimized can be set to true if the entire operation happens within the same process (i.e. sender and receiver of the OLE operation are located in the same process). Optimized = true makes only sense if the operation to carry out is a move hence it is also the indication of the operation to be done here. Source is the source of the OLE data and only of use (and usually assigned) when an OLE operation takes place in the same application. 

 

The function returns true on success, i.e. the CF_VIRTUALTREE format is supported by the data object and the structure could be recreated, otherwise false.

Class
Links
What do you think about this topic? Send feedback!