Loweynet
Revisão | 5e5cf084f3b774846e8bc10c6c9b9160cd1fc4c1 (tree) |
---|---|
Hora | 2012-02-08 22:33:53 |
Autor | s_kawamoto <s_kawamoto@user...> |
Commiter | s_kawamoto |
Change behavior of return key if a directory in the file list is chosen.
@@ -619,6 +619,7 @@ | ||
619 | 619 | #define ID_BUTTON40174 40174 |
620 | 620 | #define ID_BUTTON40175 40175 |
621 | 621 | #define MENU_SWITCH_OSS 40176 |
622 | +#define MENU_OPEN 40177 | |
622 | 623 | #define FSNOTIFY_TITLE 65535 |
623 | 624 | #define HOST_SIZEGRIP 65535 |
624 | 625 |
@@ -619,6 +619,7 @@ | ||
619 | 619 | #define ID_BUTTON40174 40174 |
620 | 620 | #define ID_BUTTON40175 40175 |
621 | 621 | #define MENU_SWITCH_OSS 40176 |
622 | +#define MENU_OPEN 40177 | |
622 | 623 | #define FSNOTIFY_TITLE 65535 |
623 | 624 | #define HOST_SIZEGRIP 65535 |
624 | 625 |
@@ -979,6 +979,22 @@ static LRESULT CALLBACK FtpWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARA | ||
979 | 979 | |
980 | 980 | case MENU_DCLICK : |
981 | 981 | if(hWndCurFocus == GetLocalHwnd()) |
982 | + // ローカルフォルダを開く | |
983 | +// DoubleClickProc(WIN_LOCAL, YES, -1); | |
984 | + DoubleClickProc(WIN_LOCAL, NO, -1); | |
985 | + else | |
986 | + { | |
987 | + SuppressRefresh = 1; | |
988 | + // ローカルフォルダを開く | |
989 | +// DoubleClickProc(WIN_REMOTE, YES, -1); | |
990 | + DoubleClickProc(WIN_REMOTE, NO, -1); | |
991 | + SuppressRefresh = 0; | |
992 | + } | |
993 | + break; | |
994 | + | |
995 | + // ローカルフォルダを開く | |
996 | + case MENU_OPEN : | |
997 | + if(hWndCurFocus == GetLocalHwnd()) | |
982 | 998 | DoubleClickProc(WIN_LOCAL, YES, -1); |
983 | 999 | else |
984 | 1000 | { |
@@ -1896,7 +1896,9 @@ static void AddOpenMenu(HMENU hMenu, UINT Flg) | ||
1896 | 1896 | char Tmp[FMAX_PATH+1]; |
1897 | 1897 | int i; |
1898 | 1898 | |
1899 | - AppendMenu(hMenu, MF_STRING | Flg, MENU_DCLICK, MSGJPN274); | |
1899 | + // ローカルフォルダを開く | |
1900 | +// AppendMenu(hMenu, MF_STRING | Flg, MENU_DCLICK, MSGJPN274); | |
1901 | + AppendMenu(hMenu, MF_STRING | Flg, MENU_OPEN, MSGJPN274); | |
1900 | 1902 | for(i = 0; i < VIEWERS; i++) |
1901 | 1903 | { |
1902 | 1904 | if(strlen(ViewerName[i]) != 0) |