From 15c5d4bba2dd69b1dfa6310e3349e9ddf5a2e924 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 9 Mar 2020 21:11:25 +0300 Subject: IEView: - Copy command now can copy images too; - code cleaning --- plugins/IEView/src/IEView.cpp | 8 +++++--- plugins/IEView/src/IEView.h | 1 - 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'plugins/IEView/src') diff --git a/plugins/IEView/src/IEView.cpp b/plugins/IEView/src/IEView.cpp index fdce55d149..8df5af5d6b 100644 --- a/plugins/IEView/src/IEView.cpp +++ b/plugins/IEView/src/IEView.cpp @@ -609,7 +609,7 @@ STDMETHODIMP IEView::ShowContextMenu(DWORD dwID, POINT *ppt, IUnknown *pcmdTarge if (iSelection == ID_MENU_CLEARLOG) { clear(NULL); } else { - SendMessage(hSPWnd, WM_COMMAND, iSelection, (LPARAM) NULL); + SendMessage(hSPWnd, WM_COMMAND, iSelection, 0); } */ } @@ -628,8 +628,10 @@ STDMETHODIMP IEView::ShowContextMenu(DWORD dwID, POINT *ppt, IUnknown *pcmdTarge EnableMenuItem(hMenu, ID_MENU_COPYLINK, MF_BYCOMMAND | MF_ENABLED); else if (dwID == 4) // text select EnableMenuItem(hMenu, ID_MENU_COPY, MF_BYCOMMAND | MF_ENABLED); - else if (dwID == 1) // control (image) + else if (dwID == 1) { // control (image) EnableMenuItem(hMenu, ID_MENU_SAVEIMAGE, MF_BYCOMMAND | MF_ENABLED); + EnableMenuItem(hMenu, ID_MENU_COPY, MF_BYCOMMAND | MF_ENABLED); + } int iSelection = TrackPopupMenu(hMenu, TPM_LEFTALIGN | TPM_RIGHTBUTTON | TPM_RETURNCMD, @@ -642,7 +644,7 @@ STDMETHODIMP IEView::ShowContextMenu(DWORD dwID, POINT *ppt, IUnknown *pcmdTarge if (iSelection == ID_MENU_CLEARLOG) clear(nullptr); else - SendMessage(hSPWnd, WM_COMMAND, iSelection, (LPARAM)NULL); + SendMessage(hSPWnd, WM_COMMAND, iSelection, 0); } } #endif diff --git a/plugins/IEView/src/IEView.h b/plugins/IEView/src/IEView.h index 853f68ffb0..12707efa0f 100644 --- a/plugins/IEView/src/IEView.h +++ b/plugins/IEView/src/IEView.h @@ -553,7 +553,6 @@ public: static IEView* get(HWND); static void release(); - static void setOptions(); inline MCONTACT Get_CurrentContact() { -- cgit v1.2.3