From dc597d70cef7202480eae6708e2142148e09356f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 23 Feb 2024 19:57:58 +0300 Subject: clipboard copy function is able now to copy in multiple formats at a time --- src/core/stdmsg/src/msgdialog.cpp | 2 +- src/core/stdpopup/src/yapp_history_dlg.cpp | 2 +- src/core/stduserinfo/src/stdinfo.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core') diff --git a/src/core/stdmsg/src/msgdialog.cpp b/src/core/stdmsg/src/msgdialog.cpp index 6f17354162..5b808c4ee9 100644 --- a/src/core/stdmsg/src/msgdialog.cpp +++ b/src/core/stdmsg/src/msgdialog.cpp @@ -662,7 +662,7 @@ INT_PTR CMsgDialog::DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam) case IDC_USERMENU: if (GetKeyState(VK_SHIFT) & 0x8000) { // copy user name ptrW id(Contact::GetInfo(CNF_UNIQUEID, m_hContact, m_szProto)); - Utils_ClipboardCopy(id); + Utils_ClipboardCopy(MClipUnicode(id)); } else { HMENU hMenu = Menu_BuildContactMenu(m_hContact); diff --git a/src/core/stdpopup/src/yapp_history_dlg.cpp b/src/core/stdpopup/src/yapp_history_dlg.cpp index dc6a5775ad..8b6e1b7506 100644 --- a/src/core/stdpopup/src/yapp_history_dlg.cpp +++ b/src/core/stdpopup/src/yapp_history_dlg.cpp @@ -422,7 +422,7 @@ void CopyPopupDataToClipboard(HWND hList, int selection) if (ListView_GetItemState(hList, i, LVIS_SELECTED)) { wchar_t buffer[2048]; buffer[0] = '\0'; ListView_GetItemText(hList, i, selection - 100, buffer, _countof(buffer)); - Utils_ClipboardCopy(buffer); + Utils_ClipboardCopy(MClipUnicode(buffer)); break; } } diff --git a/src/core/stduserinfo/src/stdinfo.cpp b/src/core/stduserinfo/src/stdinfo.cpp index b2fed06847..a2a72e1d80 100644 --- a/src/core/stduserinfo/src/stdinfo.cpp +++ b/src/core/stduserinfo/src/stdinfo.cpp @@ -130,7 +130,7 @@ public: { wchar_t buf[1024]; if (GetDlgItemText(m_hwnd, IDC_ADDR, buf, _countof(buf))) - Utils_ClipboardCopy(buf); + Utils_ClipboardCopy(MClipUnicode(buf)); } int Resizer(UTILRESIZECONTROL *urc) override -- cgit v1.2.3