Exemple #1
0
        /// <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(ShellBrowser br)
        {
            this.br = br;

            treeViewHandle = br.FolderView.Handle;
            NativeShellAPI.RegisterDragDrop(treeViewHandle, this);

            br.FolderView.HandleCreated   += new EventHandler(FolderView_HandleCreated);
            br.FolderView.HandleDestroyed += new EventHandler(FolderView_HandleDestroyed);

            ShellHelper.GetIDropTargetHelper(out dropHelperPtr, out dropHelper);
        }
Exemple #2
0
 void FolderView_HandleCreated(object sender, EventArgs e)
 {
     treeViewHandle = br.FolderView.Handle;
     NativeShellAPI.RegisterDragDrop(treeViewHandle, this);
 }
Exemple #3
0
 void FileView_HandleCreated(object sender, EventArgs e)
 {
     listViewHandle = br.FileView.Handle;
     NativeShellAPI.RegisterDragDrop(listViewHandle, this);
 }