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 /src/core/stdchat | |
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 'src/core/stdchat')
-rw-r--r-- | src/core/stdchat/src/chat.h | 1 | ||||
-rw-r--r-- | src/core/stdchat/src/window.cpp | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/core/stdchat/src/chat.h b/src/core/stdchat/src/chat.h index 463b56061b..61ddc2bd03 100644 --- a/src/core/stdchat/src/chat.h +++ b/src/core/stdchat/src/chat.h @@ -23,6 +23,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include <shlobj.h>
#include <windows.h>
+#include <windowsx.h>
#include <commctrl.h>
#include <richedit.h>
#include <ole2.h>
diff --git a/src/core/stdchat/src/window.cpp b/src/core/stdchat/src/window.cpp index 3e486387a2..3a7969746e 100644 --- a/src/core/stdchat/src/window.cpp +++ b/src/core/stdchat/src/window.cpp @@ -1075,8 +1075,8 @@ static LRESULT CALLBACK NicklistSubclassProc(HWND hwnd, UINT msg, WPARAM wParam, case WM_CONTEXTMENU:
TVHITTESTINFO hti;
{
- hti.pt.x = (short)LOWORD(lParam);
- hti.pt.y = (short)HIWORD(lParam);
+ hti.pt.x = GET_X_LPARAM(lParam);
+ hti.pt.y = GET_Y_LPARAM(lParam);
if (hti.pt.x == -1 && hti.pt.y == -1) {
int index = SendMessage(hwnd, LB_GETCURSEL, 0, 0);
int top = SendMessage(hwnd, LB_GETTOPINDEX, 0, 0);
|