Support
Joined: 18 Jul 2005 Posts: 731
|
Posted: Mon May 25, 2009 11:35 am Post subject: HOWTO: Access dragged items in the NSEItem.DragEnter, etc events |
|
|
To access items dragged from your own nse, you need to store them in your own format in the CNSEFolder.InitDataObject function. For example code, see the RegistryBrowser sample which stores the dragged keys or values in string form using the 'REGBROWSER_DATA_DORMAT' data format.
This stored data can be retrieved by the drop-target in the CNSEItem.DragEnter, CNSEItem.DragOver and CNSEItem.DragDrop functions and the corresponding items can be instantiated. For example, in the RegistryBrowser sample, the CKeyItem.DragDrop function retrieves the stored data format and parses it to create the corresponding CKeyItem or CValueItem instances and act on them. |
|