From d0ac2f5eb8d05bfa7738c2fe747638a26ae0a2eb Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 19 Apr 2025 13:23:57 +0300 Subject: fixes #4992 (StdMsg, Scriver: "Paste-n-send" doesn't work with files) --- plugins/Scriver/src/input.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'plugins/Scriver/src') 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); -- cgit v1.2.3