From 24a39515399e9555dd0e4ad72b7a22f9152b0adf Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 19 May 2015 12:50:25 +0000 Subject: end of zoo with WM_CONTEXTMENU's lParam git-svn-id: http://svn.miranda-ng.org/main/trunk@13693 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MyDetails/src/commons.h | 1 + plugins/MyDetails/src/frame.cpp | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/MyDetails/src') diff --git a/plugins/MyDetails/src/commons.h b/plugins/MyDetails/src/commons.h index f01193972d..735b1751ae 100644 --- a/plugins/MyDetails/src/commons.h +++ b/plugins/MyDetails/src/commons.h @@ -24,6 +24,7 @@ Boston, MA 02111-1307, USA. #define _CRT_SECURE_NO_WARNINGS #include +#include #include #include diff --git a/plugins/MyDetails/src/frame.cpp b/plugins/MyDetails/src/frame.cpp index 498846efd5..b7718e5048 100644 --- a/plugins/MyDetails/src/frame.cpp +++ b/plugins/MyDetails/src/frame.cpp @@ -1702,10 +1702,7 @@ LRESULT CALLBACK FrameWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPar case WM_CONTEXTMENU: proto = protocols->Get(data->protocol_number); if (proto != NULL) { - POINT p; - p.x = LOWORD(lParam); - p.y = HIWORD(lParam); - + POINT p = { GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam) }; ScreenToClient(hwnd, &p); data->showing_menu = true; -- cgit v1.2.3