• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 750
  • Last Modified:

Getting information from IDataObject

Hi,

I am using MustangPeak.net VirtualShellTools component, TVirtualExplorerEasyListview.

It has an event triggered when receiving drop from other application (see in the code).

Do you know how to parse information of what are the objects that were dropped?

I believed the informations are packaged into the DataObject parameter.

I need to know if it is a FILE (or FILES) or FOLDER (or FOLDERS), for example.
Also type of action (copy / cut / etc ... if available).

My plan is to catch dropped files/folders, then stored in a LIST.

Thanks.
procedure TForm1.VirtualExplorerEasyListview1OLEDragDrop(
  Sender: TCustomEasyListview; DataObject: IDataObject;
  KeyState: TCommonKeyStates; WindowPt: TPoint;
  AvailableEffects: TCommonDropEffects;
  var DesiredDropEffect: TCommonDropEffect; var Handled: Boolean);
begin
    // This event is triggered when receiving drop from other application.
end;

Open in new window

0
dudup
Asked:
dudup
1 Solution
 
atul_parmarCommented:
Hi,

Here is very nice step by step walkthrough.  http://www.delphidabbler.com/articles?article=24&part=4

Atul
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now