Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pavlov <ipavlov@users.sourceforge.net>2007-09-04 04:00:00 +0400
committerKornel LesiƄski <kornel@geekhood.net>2016-05-28 02:15:54 +0300
commitb82f80647dd2b3890cdbebfe2aae44f7564baf5a (patch)
tree043d13c287b1485cc06cd6fb9fd6f8bfd0e061c0 /CPP/7zip/UI/FileManager/MyLoadMenu.cpp
parent051769bbc577aeede90558b6ab5c9be187940ca0 (diff)
4.54 beta
Diffstat (limited to 'CPP/7zip/UI/FileManager/MyLoadMenu.cpp')
-rwxr-xr-xCPP/7zip/UI/FileManager/MyLoadMenu.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/CPP/7zip/UI/FileManager/MyLoadMenu.cpp b/CPP/7zip/UI/FileManager/MyLoadMenu.cpp
index a2a6c202..4ad152b1 100755
--- a/CPP/7zip/UI/FileManager/MyLoadMenu.cpp
+++ b/CPP/7zip/UI/FileManager/MyLoadMenu.cpp
@@ -6,6 +6,7 @@
#include "Windows/Menu.h"
#include "Windows/Error.h"
+#include "Windows/Clipboard.h"
#include "../../PropID.h"
@@ -30,6 +31,7 @@ extern void OptionsDialog(HWND hwndOwner, HINSTANCE hInstance);
using namespace NWindows;
static const int kFileMenuIndex = 0;
+static const int kEditMenuIndex = 1;
static const int kViewMenuIndex = 2;
static const int kBookmarksMenuIndex = kViewMenuIndex + 1;
@@ -321,7 +323,16 @@ void OnMenuActivating(HWND /* hWnd */, HMENU hMenu, int position)
}
// CopyMenu(g_FileMenu, hMenu);
g_App.GetFocusedPanel().CreateFileMenu(hMenu);
-
+ }
+ else if (position == kEditMenuIndex)
+ {
+ /*
+ CMenu menu;
+ menu.Attach(hMenu);
+ menu.EnableItem(IDM_EDIT_CUT, MF_ENABLED);
+ menu.EnableItem(IDM_EDIT_COPY, MF_ENABLED);
+ menu.EnableItem(IDM_EDIT_PASTE, IsClipboardFormatAvailableHDROP() ? MF_ENABLED : MF_GRAYED);
+ */
}
else if (position == kViewMenuIndex)
{
@@ -545,6 +556,9 @@ bool OnMenuCommand(HWND hWnd, int id)
break;
// Edit
+ case IDM_EDIT_CUT:
+ g_App.EditCut();
+ break;
case IDM_EDIT_COPY:
g_App.EditCopy();
break;