summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-03-09 21:11:25 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-03-09 21:11:25 +0300
commit15c5d4bba2dd69b1dfa6310e3349e9ddf5a2e924 (patch)
treed181a6690f2ed825d88f4355931630aebb9e9021 /plugins
parent705399b8e5e599a673e78c63514105cd34e255f3 (diff)
IEView:
- Copy command now can copy images too; - code cleaning
Diffstat (limited to 'plugins')
-rw-r--r--plugins/IEView/src/IEView.cpp8
-rw-r--r--plugins/IEView/src/IEView.h1
2 files changed, 5 insertions, 4 deletions
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()
{