Exemplo n.º 1
0
        public void OnButtonClick()
        {
            bool fFilesInClipboard = false;

            try {
                fFilesInClipboard = Clipboard.ContainsFileDropList();
            }
            catch {
            }

            if (fFilesInClipboard)
            {
                FileOps.FileOperation(FileOpActions.Paste, this.pluginServer.ExplorerHandle, null);
            }
            else
            {
                System.Media.SystemSounds.Beep.Play();
            }
        }
Exemplo n.º 2
0
        public static void FileOperation(FileOpActions action, IntPtr hwndExplr, IShellBrowser shellBrowser)
        {
            IntPtr hwnd = FileOps.fVista ? FindWindowEx(hwndExplr, IntPtr.Zero, new StringBuilder("ShellTabWindowClass"), null) : hwndExplr;

            if (FileOps.fVista)
            {
                SendMessage(hwnd, WM_COMMAND, (IntPtr)action, IntPtr.Zero);
            }
            else
            {
                PostMessage(hwnd, WM_COMMAND, (IntPtr)action, IntPtr.Zero);
            }

            // make selected icons transparent and refresh them immediately.
            // ( when NO-FULLROW-SELECT setting is ON, vista's explorer won't redraw items... )
            if (FileOps.fVista && action == FileOpActions.Cut && shellBrowser != null)
            {
                FileOps.RefreshItems(shellBrowser);
            }
        }
Exemplo n.º 3
0
 public void OnButtonClick()
 {
     FileOps.FileOperation(FileOpActions.Cut, this.pluginServer.ExplorerHandle, this.shellBrowser);
 }
Exemplo n.º 4
0
 public void OnShortcutKeyPressed(int index)
 {
     FileOps.FileOperation(FileOpActions.Properties, this.pluginServer.ExplorerHandle, null);
 }
Exemplo n.º 5
0
 public void OnButtonClick()
 {
     FileOps.FileOperation(FileOpActions.Undo, this.pluginServer.ExplorerHandle, null);
 }
Exemplo n.º 6
0
 public void OnButtonClick()
 {
     FileOps.FileOperation(FileOpActions.MoveTo, pluginServer.ExplorerHandle, null);
 }
Exemplo n.º 7
0
 public void OnShortcutKeyPressed(int index)
 {
     FileOps.FileOperation(FileOpActions.MoveTo, pluginServer.ExplorerHandle, null);
 }