/// <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(Browser 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 ListView 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 BrowserLVDropWrapper(CFileExplorer br) { this.br = br; listViewHandle = br.FileView.Handle; ShellAPI.RegisterDragDrop(listViewHandle, this); br.FileView.HandleCreated += new EventHandler(FileView_HandleCreated); br.FileView.HandleDestroyed += new EventHandler(FileView_HandleDestroyed); ShellHelper.GetIDropTargetHelper(out dropHelperPtr, out dropHelper); }
void FolderView_HandleCreated(object sender, EventArgs e) { treeViewHandle = br.FolderView.Handle; ShellAPI.RegisterDragDrop(treeViewHandle, this); }
void FileView_HandleCreated(object sender, EventArgs e) { listViewHandle = br.FileView.Handle; ShellAPI.RegisterDragDrop(listViewHandle, this); }