本文介绍了实现IDropTarget的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想将文件从Windows资源管理器拖放到我正在Codegear RAD studio 2009中构建的应用程序中。然后,我希望能够从拖放对象中访问数据。我相信我必须实现IDropTarget。有人可以提供一个我如何实现IDropTarget来实现这个的例子?解决方案
有一个好的例子,由Michael Dunn在codeproject.com上编写,显示如何实现 IDropTarget
,并从拖放操作中用于存储数据的 IDataObject
内访问数据。
I would like to drag and drop files from windows explorer onto my application which is being built in Codegear RAD studio 2009. Then I would like to be able to access data from the object I am dragging and dropping. I believe I have to implement IDropTarget. Can someone please provide an example of how I might implement IDropTarget to achieve this?
解决方案
There is a nice example written by Michael Dunn over at codeproject.com which shows how to implement IDropTarget
and access data from inside a IDataObject
which is used to store data during the drag and drop operation.
这篇关于实现IDropTarget的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!