Sky Software Homepage LogicNP Software Knowledge Base And FAQ

 
Contact Product Support    SearchSearch      Subscribe to the RSS feed for this forum

INFO: Determining the target of the drop

 
Subscribe to the RSS feed for this forum  Forum Index -> EZNamespaceExtensionsMFC
View previous topic :: View next topic  
Author Message
Support



Joined: 18 Jul 2005
Posts: 731

Posted: Mon Dec 22, 2008 6:04 am    Post subject: INFO: Determining the target of the drop

The Windows drag-drop model does not make it possible to determine the target path (if dropping on a folder in Windows Explorer) or any other information about the target application. The source of the drag-drop operation can only provide the data in one or more different formats. The target decides what to do with the data.

The following aspects of the drag-drop operation can be controlled when you act as a drop-source (list not exhaustive):

Providing data in one or more formats so that different targets can understand and read the data.
The CNSEFolder.InitDataObject function should be used to provide the data. Alternately, you can make your items accessible via streams (for example, if they represent items on a FTP server or a remote/web location). To do this, call the CNSEDataObject::SetHasFileData method in the CNSEFolder::GetDataObject method. Then override the CNSEItem::GetFileDescriptor CNSEItem::GetStream methods to make your items accessible via streams.

Specifying whether the items can be moved, copied or linked.
The CNSEFolder::GetAttributes function should be used to specify this by including the
NSEItemAttributes.NSEIA_CanLink, NSEItemAttributes.NSEIA_CanMove and NSEItemAttributes.NSEIA_CanLink flags in the item's attributes. For example, if the item attributes contains NSEItemAttributes.NSEIA_CanLink flag, the item can be copied by the target.

Specifying the preferred drop action
http://www.ssware.com/support/viewtopic.php?t=495
Back to top
Display posts from previous:   
Forum Index -> EZNamespaceExtensionsMFC All times are GMT
Page 1 of 1

 
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group