Getting information from IDataObject

Posted on 2009-02-24
Medium Priority
Last Modified: 2012-05-06

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.

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

Open in new window

Question by:dudup
1 Comment
LVL 10

Accepted Solution

atul_parmar earned 1000 total points
ID: 23730353

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


Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question