diff options
author | George Hazan <george.hazan@gmail.com> | 2015-05-19 12:50:25 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-05-19 12:50:25 +0000 |
commit | 24a39515399e9555dd0e4ad72b7a22f9152b0adf (patch) | |
tree | 3577b4bf1442497133aa1646bdb3443950ed0cef /plugins/YAPP | |
parent | 400d7bb71630f774dc9392cad37a22528958e2bc (diff) |
end of zoo with WM_CONTEXTMENU's lParam
git-svn-id: http://svn.miranda-ng.org/main/trunk@13693 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/YAPP')
-rw-r--r-- | plugins/YAPP/src/common.h | 1 | ||||
-rw-r--r-- | plugins/YAPP/src/yapp_history_dlg.cpp | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/YAPP/src/common.h b/plugins/YAPP/src/common.h index fa72b992d5..f1305489f0 100644 --- a/plugins/YAPP/src/common.h +++ b/plugins/YAPP/src/common.h @@ -10,6 +10,7 @@ #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#include <windows.h>
+#include <windowsx.h>
#include <commctrl.h>
#include <time.h>
#include <malloc.h>
diff --git a/plugins/YAPP/src/yapp_history_dlg.cpp b/plugins/YAPP/src/yapp_history_dlg.cpp index 5b3b8d7bf9..04d9eae3a3 100644 --- a/plugins/YAPP/src/yapp_history_dlg.cpp +++ b/plugins/YAPP/src/yapp_history_dlg.cpp @@ -518,15 +518,14 @@ static LRESULT CALLBACK PopupsListSubclassProc(HWND hWnd, UINT msg, WPARAM wPara switch (msg) {
case WM_CONTEXTMENU:
{
- int x = LOWORD(lParam);
- int y = HIWORD(lParam);
+ POINT pt = { GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam) };
int selection;
HMENU hMenu = CreatePopupMenu();
AppendMenu(hMenu, MF_STRING, POPUPMENU_TITLE, TranslateT("Copy title to clipboard"));
AppendMenu(hMenu, MF_STRING, POPUPMENU_MESSAGE, TranslateT("Copy message to clipboard"));
AppendMenu(hMenu, MF_STRING, POPUPMENU_TIMESTAMP, TranslateT("Copy timestamp to clipboard"));
- selection = TrackPopupMenu(hMenu, TPM_LEFTALIGN | TPM_RIGHTBUTTON | TPM_RETURNCMD, x, y, 0, hWnd, NULL);
+ selection = TrackPopupMenu(hMenu, TPM_LEFTALIGN | TPM_RIGHTBUTTON | TPM_RETURNCMD, pt.x, pt.y, 0, hWnd, NULL);
DestroyMenu(hMenu);
if (selection)
{
|