diff options
author | George Hazan <george.hazan@gmail.com> | 2025-04-19 13:23:57 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2025-04-19 13:23:57 +0300 |
commit | d0ac2f5eb8d05bfa7738c2fe747638a26ae0a2eb (patch) | |
tree | 203658b20808ade3ff6b00082d7b257b4566c262 /plugins/Scriver/src | |
parent | 3b3dea953dc54158db9cb35378852175e55c669d (diff) |
fixes #4992 (StdMsg, Scriver: "Paste-n-send" doesn't work with files)
Diffstat (limited to 'plugins/Scriver/src')
-rw-r--r-- | plugins/Scriver/src/input.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/Scriver/src/input.cpp b/plugins/Scriver/src/input.cpp index 6c95b288bf..f18f0ef742 100644 --- a/plugins/Scriver/src/input.cpp +++ b/plugins/Scriver/src/input.cpp @@ -47,11 +47,12 @@ void InputAreaContextMenu(HWND hwnd, WPARAM, LPARAM lParam, MCONTACT hContact) if (!SendMessage(hwnd, EM_CANREDO, 0, 0))
EnableMenuItem(hSubMenu, IDM_REDO, MF_BYCOMMAND | MF_GRAYED);
- if (!SendMessage(hwnd, EM_CANPASTE, 0, 0)) {
- EnableMenuItem(hSubMenu, IDM_PASTESEND, MF_BYCOMMAND | MF_GRAYED);
- if (!IsClipboardFormatAvailable(CF_HDROP) && !IsClipboardFormatAvailable(CF_BITMAP))
+ if (!SendMessage(hwnd, EM_CANPASTE, 0, 0))
+ if (!IsClipboardFormatAvailable(CF_HDROP) && !IsClipboardFormatAvailable(CF_BITMAP)) {
EnableMenuItem(hSubMenu, IDM_PASTE, MF_BYCOMMAND | MF_GRAYED);
- }
+ EnableMenuItem(hSubMenu, IDM_PASTESEND, MF_BYCOMMAND | MF_GRAYED);
+ }
+
if (lParam == 0xFFFFFFFF) {
SendMessage(hwnd, EM_POSFROMCHAR, (WPARAM)&pt, (LPARAM)sel.cpMax);
ClientToScreen(hwnd, &pt);
|