Commit 0a0fffa5 authored by Martin Fuchs's avatar Martin Fuchs Committed by Alexandre Julliard

- implement commands 'copy' and 'delete'

- fix 'move' command for the left pane
parent e2511e19
...@@ -31,9 +31,9 @@ IDM_WINEFILE MENU FIXED IMPURE ...@@ -31,9 +31,9 @@ IDM_WINEFILE MENU FIXED IMPURE
POPUP "&Soubor" { POPUP "&Soubor" {
MENUITEM "&Otevt\tEnter" , ID_ACTIVATE MENUITEM "&Otevt\tEnter" , ID_ACTIVATE
MENUITEM "Pe&sunout...\tF7" , ID_FILE_MOVE MENUITEM "Pe&sunout...\tF7" , ID_FILE_MOVE
MENUITEM "&Koprovat...\tF8" , 107 MENUITEM "&Koprovat...\tF8" , ID_FILE_COPY
MENUITEM "&Do schrnky...\tF9" , 118 MENUITEM "&Do schrnky...\tF9" , 118
MENUITEM "&Smazat\tDel" , 108 MENUITEM "&Smazat\tDel" , ID_FILE_DELETE
MENUITEM "Pejme&novat..." , 109 MENUITEM "Pejme&novat..." , 109
MENUITEM "Vlastnost&i...\tAlt+Enter" , ID_EDIT_PROPERTIES MENUITEM "Vlastnost&i...\tAlt+Enter" , ID_EDIT_PROPERTIES
MENUITEM SEPARATOR MENUITEM SEPARATOR
......
...@@ -30,9 +30,9 @@ IDM_WINEFILE MENU FIXED IMPURE ...@@ -30,9 +30,9 @@ IDM_WINEFILE MENU FIXED IMPURE
POPUP "&Datei" { POPUP "&Datei" {
MENUITEM "&ffnen\tEingabetaste" , ID_ACTIVATE MENUITEM "&ffnen\tEingabetaste" , ID_ACTIVATE
MENUITEM "&Verschieben...\tF7" , ID_FILE_MOVE MENUITEM "&Verschieben...\tF7" , ID_FILE_MOVE
MENUITEM "&Kopieren...\tF8" , 107 MENUITEM "&Kopieren...\tF8" , ID_FILE_COPY
MENUITEM "&In Zwischenablage...\tF9" , 118 MENUITEM "&In Zwischenablage...\tF9" , 118
MENUITEM "&Lschen\tEntf" , 108 MENUITEM "&Lschen\tEntf" , ID_FILE_DELETE
MENUITEM "&Umbenennen..." , 109 MENUITEM "&Umbenennen..." , 109
MENUITEM "&Eigenschaften...\tAlt+Eingabetaste" , ID_EDIT_PROPERTIES MENUITEM "&Eigenschaften...\tAlt+Eingabetaste" , ID_EDIT_PROPERTIES
MENUITEM SEPARATOR MENUITEM SEPARATOR
......
...@@ -30,9 +30,9 @@ IDM_WINEFILE MENU FIXED IMPURE ...@@ -30,9 +30,9 @@ IDM_WINEFILE MENU FIXED IMPURE
POPUP "&File" { POPUP "&File" {
MENUITEM "&Open\tEnter" , ID_ACTIVATE MENUITEM "&Open\tEnter" , ID_ACTIVATE
MENUITEM "&Move...\tF7" , ID_FILE_MOVE MENUITEM "&Move...\tF7" , ID_FILE_MOVE
MENUITEM "&Copy...\tF8" , 107 MENUITEM "&Copy...\tF8" , ID_FILE_COPY
MENUITEM "&In Clipboard...\tF9" , 118 MENUITEM "&In Clipboard...\tF9" , 118
MENUITEM "&Delete\tDel" , 108 MENUITEM "&Delete\tDel" , ID_FILE_DELETE
MENUITEM "Re&name..." , 109 MENUITEM "Re&name..." , 109
MENUITEM "Propert&ies...\tAlt+Enter" , ID_EDIT_PROPERTIES MENUITEM "Propert&ies...\tAlt+Enter" , ID_EDIT_PROPERTIES
MENUITEM SEPARATOR MENUITEM SEPARATOR
......
...@@ -28,9 +28,9 @@ IDM_WINEFILE MENU FIXED IMPURE ...@@ -28,9 +28,9 @@ IDM_WINEFILE MENU FIXED IMPURE
POPUP "&Archivo" { POPUP "&Archivo" {
MENUITEM "&Abrir\tEnter" , ID_ACTIVATE MENUITEM "&Abrir\tEnter" , ID_ACTIVATE
MENUITEM "Mo&ver...\tF7" , ID_FILE_MOVE MENUITEM "Mo&ver...\tF7" , ID_FILE_MOVE
MENUITEM "&Copiar...\tF8" , 107 MENUITEM "&Copiar...\tF8" , ID_FILE_COPY
MENUITEM "E&n portapapeles...\tF9" , 118 MENUITEM "E&n portapapeles...\tF9" , 118
MENUITEM "&Eliminar\tDel" , 108 MENUITEM "&Eliminar\tDel" , ID_FILE_DELETE
MENUITEM "&Renombrar..." , 109 MENUITEM "&Renombrar..." , 109
MENUITEM "&Propiedades...\tAlt+Enter" , ID_EDIT_PROPERTIES MENUITEM "&Propiedades...\tAlt+Enter" , ID_EDIT_PROPERTIES
MENUITEM SEPARATOR MENUITEM SEPARATOR
......
...@@ -31,9 +31,9 @@ IDM_WINEFILE MENU FIXED IMPURE ...@@ -31,9 +31,9 @@ IDM_WINEFILE MENU FIXED IMPURE
POPUP "&Fichier" { POPUP "&Fichier" {
MENUITEM "&Ouvrir\tEntre" , ID_ACTIVATE MENUITEM "&Ouvrir\tEntre" , ID_ACTIVATE
MENUITEM "&Dplacer...\tF7" , ID_FILE_MOVE MENUITEM "&Dplacer...\tF7" , ID_FILE_MOVE
MENUITEM "&Copier...\tF8" , 107 MENUITEM "&Copier...\tF8" , ID_FILE_COPY
MENUITEM "P&resse-Papiers...\tF9" , 118 MENUITEM "P&resse-Papiers...\tF9" , 118
MENUITEM "&Effacer\tDel" , 108 MENUITEM "&Effacer\tDel" , ID_FILE_DELETE
MENUITEM "Re&nommer..." , 109 MENUITEM "Re&nommer..." , 109
MENUITEM "&Proprits...\tAlt+Entree" , ID_EDIT_PROPERTIES MENUITEM "&Proprits...\tAlt+Entree" , ID_EDIT_PROPERTIES
MENUITEM SEPARATOR MENUITEM SEPARATOR
......
...@@ -31,9 +31,9 @@ IDM_WINEFILE MENU FIXED IMPURE ...@@ -31,9 +31,9 @@ IDM_WINEFILE MENU FIXED IMPURE
POPUP "&Fjl" { POPUP "&Fjl" {
MENUITEM "&Megynits\tEnter" , ID_ACTIVATE MENUITEM "&Megynits\tEnter" , ID_ACTIVATE
MENUITEM "t&helyezs...\tF7" , ID_FILE_MOVE MENUITEM "t&helyezs...\tF7" , ID_FILE_MOVE
MENUITEM "&Msols...\tF8" , 107 MENUITEM "&Msols...\tF8" , ID_FILE_COPY
MENUITEM "&Vglapon...\tF9" , 118 MENUITEM "&Vglapon...\tF9" , 118
MENUITEM "&Trls\tDel" , 108 MENUITEM "&Trls\tDel" , ID_FILE_DELETE
MENUITEM "t&nevezs..." , 109 MENUITEM "t&nevezs..." , 109
MENUITEM "T&ulajdonsgok...\tAlt+Enter" , ID_EDIT_PROPERTIES MENUITEM "T&ulajdonsgok...\tAlt+Enter" , ID_EDIT_PROPERTIES
MENUITEM SEPARATOR MENUITEM SEPARATOR
......
...@@ -31,9 +31,9 @@ IDM_WINEFILE MENU FIXED IMPURE ...@@ -31,9 +31,9 @@ IDM_WINEFILE MENU FIXED IMPURE
POPUP "&File" { POPUP "&File" {
MENUITEM "&Apri\tInvio" , ID_ACTIVATE MENUITEM "&Apri\tInvio" , ID_ACTIVATE
MENUITEM "&Sposta...\tF7" , ID_FILE_MOVE MENUITEM "&Sposta...\tF7" , ID_FILE_MOVE
MENUITEM "&Copia...\tF8" , 107 MENUITEM "&Copia...\tF8" , ID_FILE_COPY
MENUITEM "&Negli Appunti...\tF9" , 118 MENUITEM "&Negli Appunti...\tF9" , 118
MENUITEM "&Cancella\tDel" , 108 MENUITEM "&Cancella\tDel" , ID_FILE_DELETE
MENUITEM "Ri&nomina..." , 109 MENUITEM "Ri&nomina..." , 109
MENUITEM "Propri&et...\tAlt+Invio" , ID_EDIT_PROPERTIES MENUITEM "Propri&et...\tAlt+Invio" , ID_EDIT_PROPERTIES
MENUITEM SEPARATOR MENUITEM SEPARATOR
......
...@@ -27,9 +27,9 @@ IDM_WINEFILE MENU FIXED IMPURE ...@@ -27,9 +27,9 @@ IDM_WINEFILE MENU FIXED IMPURE
POPUP "&Bestand" { POPUP "&Bestand" {
MENUITEM "&Openen\tEnter" , ID_ACTIVATE MENUITEM "&Openen\tEnter" , ID_ACTIVATE
MENUITEM "&Verplaatsen...\tF7" , ID_FILE_MOVE MENUITEM "&Verplaatsen...\tF7" , ID_FILE_MOVE
MENUITEM "&Kopiren...\tF8" , 107 MENUITEM "&Kopiren...\tF8" , ID_FILE_COPY
MENUITEM "Naar &klembord...\tF9" , 118 MENUITEM "Naar &klembord...\tF9" , 118
MENUITEM "Ver&wijderen\tDel" , 108 MENUITEM "Ver&wijderen\tDel" , ID_FILE_DELETE
MENUITEM "&Naam wijzigen..." , 109 MENUITEM "&Naam wijzigen..." , 109
MENUITEM "&Eigenschappen...\tAlt+Enter" , ID_EDIT_PROPERTIES MENUITEM "&Eigenschappen...\tAlt+Enter" , ID_EDIT_PROPERTIES
MENUITEM SEPARATOR MENUITEM SEPARATOR
......
...@@ -31,9 +31,9 @@ IDM_WINEFILE MENU FIXED IMPURE ...@@ -31,9 +31,9 @@ IDM_WINEFILE MENU FIXED IMPURE
POPUP "&Plik" { POPUP "&Plik" {
MENUITEM "&Otwrz\tEnter" , ID_ACTIVATE MENUITEM "&Otwrz\tEnter" , ID_ACTIVATE
MENUITEM "&Przenie...\tF7" , ID_FILE_MOVE MENUITEM "&Przenie...\tF7" , ID_FILE_MOVE
MENUITEM "&Kopiuj...\tF8" , 107 MENUITEM "&Kopiuj...\tF8" , ID_FILE_COPY
MENUITEM "W s&chowku...\tF9" , 118 MENUITEM "W s&chowku...\tF9" , 118
MENUITEM "&Usu\tDel" , 108 MENUITEM "&Usu\tDel" , ID_FILE_DELETE
MENUITEM "&Zmie nazw..." , 109 MENUITEM "&Zmie nazw..." , 109
MENUITEM "Ustawie&nia...\tAlt+Enter" , ID_EDIT_PROPERTIES MENUITEM "Ustawie&nia...\tAlt+Enter" , ID_EDIT_PROPERTIES
MENUITEM SEPARATOR MENUITEM SEPARATOR
......
...@@ -30,9 +30,9 @@ IDM_WINEFILE MENU FIXED IMPURE ...@@ -30,9 +30,9 @@ IDM_WINEFILE MENU FIXED IMPURE
POPUP "&Arquivo" { POPUP "&Arquivo" {
MENUITEM "A&brir\tEnter" , ID_ACTIVATE MENUITEM "A&brir\tEnter" , ID_ACTIVATE
MENUITEM "&Mover...\tF7" , ID_FILE_MOVE MENUITEM "&Mover...\tF7" , ID_FILE_MOVE
MENUITEM "&Copiar...\tF8" , 107 MENUITEM "&Copiar...\tF8" , ID_FILE_COPY
MENUITEM "&In Clipboard...\tF9" , 118 MENUITEM "&In Clipboard...\tF9" , 118
MENUITEM "E&xcluir\tDel" , 108 MENUITEM "E&xcluir\tDel" , ID_FILE_DELETE
MENUITEM "Re&nomear..." , 109 MENUITEM "Re&nomear..." , 109
MENUITEM "&Propriedades...\tAlt+Enter" , ID_EDIT_PROPERTIES MENUITEM "&Propriedades...\tAlt+Enter" , ID_EDIT_PROPERTIES
MENUITEM SEPARATOR MENUITEM SEPARATOR
...@@ -157,9 +157,9 @@ IDM_WINEFILE MENU FIXED IMPURE ...@@ -157,9 +157,9 @@ IDM_WINEFILE MENU FIXED IMPURE
POPUP "&Ficheiro" { POPUP "&Ficheiro" {
MENUITEM "A&brir\tEnter" , ID_ACTIVATE MENUITEM "A&brir\tEnter" , ID_ACTIVATE
MENUITEM "&Mover...\tF7" , ID_FILE_MOVE MENUITEM "&Mover...\tF7" , ID_FILE_MOVE
MENUITEM "&Copiar...\tF8" , 107 MENUITEM "&Copiar...\tF8" , ID_FILE_COPY
MENUITEM "&Na Area de Transferencia...\tF9" , 118 MENUITEM "&Na Area de Transferencia...\tF9" , 118
MENUITEM "E&xcluir\tDel" , 108 MENUITEM "E&xcluir\tDel" , ID_FILE_DELETE
MENUITEM "Re&nomear..." , 109 MENUITEM "Re&nomear..." , 109
MENUITEM "&Propriedades...\tAlt+Enter" , ID_EDIT_PROPERTIES MENUITEM "&Propriedades...\tAlt+Enter" , ID_EDIT_PROPERTIES
MENUITEM SEPARATOR MENUITEM SEPARATOR
......
...@@ -27,9 +27,9 @@ IDM_WINEFILE MENU FIXED IMPURE ...@@ -27,9 +27,9 @@ IDM_WINEFILE MENU FIXED IMPURE
POPUP "&" { POPUP "&" {
MENUITEM "&\tEnter" , ID_ACTIVATE MENUITEM "&\tEnter" , ID_ACTIVATE
MENUITEM "&...\tF7" , ID_FILE_MOVE MENUITEM "&...\tF7" , ID_FILE_MOVE
MENUITEM "&...\tF8" , 107 MENUITEM "&...\tF8" , ID_FILE_COPY
MENUITEM "& ...\tF9" , 118 MENUITEM "& ...\tF9" , 118
MENUITEM "&\tDel" , 108 MENUITEM "&\tDel" , ID_FILE_DELETE
MENUITEM "..." , 109 MENUITEM "..." , 109
MENUITEM "...\tAlt+Enter" , ID_EDIT_PROPERTIES MENUITEM "...\tAlt+Enter" , ID_EDIT_PROPERTIES
MENUITEM SEPARATOR MENUITEM SEPARATOR
......
...@@ -28,9 +28,9 @@ IDM_WINEFILE MENU FIXED IMPURE ...@@ -28,9 +28,9 @@ IDM_WINEFILE MENU FIXED IMPURE
POPUP "&File" { POPUP "&File" {
MENUITEM "&Open\tEnter" , ID_ACTIVATE MENUITEM "&Open\tEnter" , ID_ACTIVATE
MENUITEM "&Move...\tF7" , ID_FILE_MOVE MENUITEM "&Move...\tF7" , ID_FILE_MOVE
MENUITEM "&Copy...\tF8" , 107 MENUITEM "&Copy...\tF8" , ID_FILE_COPY
MENUITEM "&In Clipboard...\tF9" , 118 MENUITEM "&In Clipboard...\tF9" , 118
MENUITEM "&Delete\tDel" , 108 MENUITEM "&Delete\tDel" , ID_FILE_DELETE
MENUITEM "Re&name..." , 109 MENUITEM "Re&name..." , 109
MENUITEM "Propert&ies...\tAlt+Enter" , ID_EDIT_PROPERTIES MENUITEM "Propert&ies...\tAlt+Enter" , ID_EDIT_PROPERTIES
MENUITEM SEPARATOR MENUITEM SEPARATOR
......
...@@ -31,9 +31,9 @@ IDM_WINEFILE MENU FIXED IMPURE ...@@ -31,9 +31,9 @@ IDM_WINEFILE MENU FIXED IMPURE
POPUP "&Arkiv" { POPUP "&Arkiv" {
MENUITEM "&ppna\tEnter", ID_ACTIVATE MENUITEM "&ppna\tEnter", ID_ACTIVATE
MENUITEM "&Flytta...\tF7", ID_FILE_MOVE MENUITEM "&Flytta...\tF7", ID_FILE_MOVE
MENUITEM "&Kopiera...\tF8", 107 MENUITEM "&Kopiera...\tF8", ID_FILE_COPY
MENUITEM "&I urklipp...\tF9", 118 MENUITEM "&I urklipp...\tF9", 118
MENUITEM "&Ta bort\tDel", 108 MENUITEM "&Ta bort\tDel", ID_FILE_DELETE
MENUITEM "&Byt namn...", 109 MENUITEM "&Byt namn...", 109
MENUITEM "&Egenskaper...\tAlt+Enter", ID_EDIT_PROPERTIES MENUITEM "&Egenskaper...\tAlt+Enter", ID_EDIT_PROPERTIES
MENUITEM SEPARATOR MENUITEM SEPARATOR
......
...@@ -28,9 +28,9 @@ IDM_WINEFILE MENU FIXED IMPURE ...@@ -28,9 +28,9 @@ IDM_WINEFILE MENU FIXED IMPURE
POPUP "文件(&F)" { POPUP "文件(&F)" {
MENUITEM "打开(&O)\tEnter" , ID_ACTIVATE MENUITEM "打开(&O)\tEnter" , ID_ACTIVATE
MENUITEM "移动(&M)...\tF7" , ID_FILE_MOVE MENUITEM "移动(&M)...\tF7" , ID_FILE_MOVE
MENUITEM "复制(&C)...\tF8" , 107 MENUITEM "复制(&C)...\tF8" , ID_FILE_COPY
MENUITEM "位于剪贴板(&I)...\tF9" , 118 MENUITEM "位于剪贴板(&I)...\tF9" , 118
MENUITEM "删除(&D)\tDel" , 108 MENUITEM "删除(&D)\tDel" , ID_FILE_DELETE
MENUITEM "改名(&N)..." , 109 MENUITEM "改名(&N)..." , 109
MENUITEM "属性(&I)...\tAlt+Enter" , ID_EDIT_PROPERTIES MENUITEM "属性(&I)...\tAlt+Enter" , ID_EDIT_PROPERTIES
MENUITEM SEPARATOR MENUITEM SEPARATOR
......
...@@ -41,6 +41,8 @@ ...@@ -41,6 +41,8 @@
#define ID_ACTIVATE 101 #define ID_ACTIVATE 101
#define ID_EXECUTE 105 #define ID_EXECUTE 105
#define ID_FILE_MOVE 106 #define ID_FILE_MOVE 106
#define ID_FILE_COPY 107
#define ID_FILE_DELETE 108
#define ID_FILE_EXIT 115 #define ID_FILE_EXIT 115
#define ID_FORMAT_DISK 203 #define ID_FORMAT_DISK 203
#define ID_CONNECT_NETWORK_DRIVE 252 #define ID_CONNECT_NETWORK_DRIVE 252
......
...@@ -21,6 +21,8 @@ IDA_WINEFILE ACCELERATORS DISCARDABLE ...@@ -21,6 +21,8 @@ IDA_WINEFILE ACCELERATORS DISCARDABLE
VK_F1, ID_HELP, VIRTKEY, NOINVERT VK_F1, ID_HELP, VIRTKEY, NOINVERT
VK_F5, ID_REFRESH, VIRTKEY, NOINVERT VK_F5, ID_REFRESH, VIRTKEY, NOINVERT
VK_F7, ID_FILE_MOVE, VIRTKEY, NOINVERT VK_F7, ID_FILE_MOVE, VIRTKEY, NOINVERT
VK_F8, ID_FILE_COPY, VIRTKEY, NOINVERT
VK_DELETE, ID_FILE_DELETE, VIRTKEY, NOINVERT
VK_RETURN, ID_ACTIVATE, VIRTKEY, NOINVERT VK_RETURN, ID_ACTIVATE, VIRTKEY, NOINVERT
#ifndef _NO_EXTENSIONS #ifndef _NO_EXTENSIONS
"X", ID_FILE_EXIT, VIRTKEY, ALT, NOINVERT "X", ID_FILE_EXIT, VIRTKEY, ALT, NOINVERT
......
...@@ -3747,6 +3747,55 @@ static void update_view_menu(ChildWnd* child) ...@@ -3747,6 +3747,55 @@ static void update_view_menu(ChildWnd* child)
} }
static BOOL is_directory(LPCTSTR target)
{
/*TODO correctly handle UNIX paths */
DWORD target_attr = GetFileAttributes(target);
if (target_attr == INVALID_FILE_ATTRIBUTES)
return FALSE;
return target_attr&FILE_ATTRIBUTE_DIRECTORY? TRUE: FALSE;
}
static BOOL prompt_target(Pane* pane, LPTSTR source, LPTSTR target)
{
TCHAR path[MAX_PATH];
int len;
get_path(pane->cur, path);
if (DialogBoxParam(Globals.hInstance, MAKEINTRESOURCE(IDD_SELECT_DESTINATION), pane->hwnd, DestinationDlgProc, (LPARAM)path) != IDOK)
return FALSE;
get_path(pane->cur, source);
/* convert relative targets to absolute paths */
if (path[0]!='/' && path[1]!=':') {
get_path(pane->cur->up, target);
len = lstrlen(target);
if (target[len-1]!='\\' && target[len-1]!='/')
target[len++] = '/';
lstrcpy(target+len, path);
} else
lstrcpy(target, path);
/* If the target already exists as directory, create a new target below this. */
if (is_directory(path)) {
TCHAR fname[_MAX_FNAME], ext[_MAX_EXT];
const static TCHAR sAppend[] = {'%','s','/','%','s','%','s','\0'};
_tsplitpath(source, NULL, NULL, fname, ext);
wsprintf(target, sAppend, path, fname, ext);
}
return TRUE;
}
static IContextMenu2* s_pctxmenu2 = NULL; static IContextMenu2* s_pctxmenu2 = NULL;
static IContextMenu3* s_pctxmenu3 = NULL; static IContextMenu3* s_pctxmenu3 = NULL;
...@@ -4023,39 +4072,43 @@ LRESULT CALLBACK ChildWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam ...@@ -4023,39 +4072,43 @@ LRESULT CALLBACK ChildWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM lparam
break; break;
case ID_FILE_MOVE: { case ID_FILE_MOVE: {
TCHAR new_name[BUFFER_LEN], old_name[BUFFER_LEN]; TCHAR source[BUFFER_LEN], target[BUFFER_LEN];
int len, ret;
get_path(pane->cur, new_name); if (prompt_target(pane, source, target)) {
SHFILEOPSTRUCT shfo = {hwnd, FO_MOVE, source, target};
ret = DialogBoxParam(Globals.hInstance, MAKEINTRESOURCE(IDD_SELECT_DESTINATION), hwnd, DestinationDlgProc, (LPARAM)new_name); source[lstrlen(source)+1] = '\0';
if (ret != IDOK) target[lstrlen(target)+1] = '\0';
break;
if (new_name[0]!='/' && new_name[1]!=':') { if (!SHFileOperation(&shfo))
get_path(pane->cur->up, old_name); refresh_child(child);
len = lstrlen(old_name); }
break;}
if (old_name[len-1]!='\\' && old_name[len-1]!='/') case ID_FILE_COPY: {
old_name[len++] = '/'; TCHAR source[BUFFER_LEN], target[BUFFER_LEN];
lstrcpy(old_name+len, new_name); if (prompt_target(pane, source, target)) {
lstrcpy(new_name, old_name); SHFILEOPSTRUCT shfo = {hwnd, FO_COPY, source, target};
}
get_path(pane->cur, old_name); source[lstrlen(source)+1] = '\0';
target[lstrlen(target)+1] = '\0';
if (MoveFileEx(old_name, new_name, MOVEFILE_COPY_ALLOWED)) { if (!SHFileOperation(&shfo))
if (pane->treePane) {
pane->root->scanned = FALSE;
pane->cur = pane->root;
activate_entry(child, pane, hwnd);
}
else
refresh_child(child); refresh_child(child);
} }
else break;}
display_error(hwnd, GetLastError());
case ID_FILE_DELETE: {
TCHAR path[BUFFER_LEN];
SHFILEOPSTRUCT shfo = {hwnd, FO_DELETE, path};
get_path(pane->cur, path);
path[lstrlen(path)+1] = '\0';
if (!SHFileOperation(&shfo))
refresh_child(child);
break;} break;}
case ID_VIEW_SORT_NAME: case ID_VIEW_SORT_NAME:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment