/// <summary> /// Registers the TreeView for drag/drop operations and uses this class as the IDropTarget /// </summary> /// <param name="br">The browser for which to support the drop</param> public BrowserTVDropWrapper(CFileExplorer br) { this.br = br; treeViewHandle = br.FolderView.Handle; ShellAPI.RegisterDragDrop(treeViewHandle, this); br.FolderView.HandleCreated += new EventHandler(FolderView_HandleCreated); br.FolderView.HandleDestroyed += new EventHandler(FolderView_HandleDestroyed); ShellHelper.GetIDropTargetHelper(out dropHelperPtr, out dropHelper); }
/// <summary> /// Registers the TreeView.ItemDrag to receive the event when an item is being dragged /// </summary> /// <param name="br">The browser for which to support the drag</param> public BrowserTVDragWrapper(CFileExplorer br) { this.br = br; br.FolderView.ItemDrag += new ItemDragEventHandler(ItemDrag); }