Commit 44e8ead5 authored by Alexandre Julliard's avatar Alexandre Julliard

hhctrl.ocx: Properly handle negative coordinates for mouse events.

parent 7cca8563
...@@ -132,7 +132,10 @@ static void SB_OnLButtonDown(HWND hWnd, WPARAM wParam, LPARAM lParam) ...@@ -132,7 +132,10 @@ static void SB_OnLButtonDown(HWND hWnd, WPARAM wParam, LPARAM lParam)
static void SB_OnLButtonUp(HWND hWnd, WPARAM wParam, LPARAM lParam) static void SB_OnLButtonUp(HWND hWnd, WPARAM wParam, LPARAM lParam)
{ {
HHInfo *pHHInfo = (HHInfo *)GetWindowLongPtrW(hWnd, GWLP_USERDATA); HHInfo *pHHInfo = (HHInfo *)GetWindowLongPtrW(hWnd, GWLP_USERDATA);
POINTS pt = MAKEPOINTS(lParam); POINT pt;
pt.x = (short)LOWORD(lParam);
pt.y = (short)HIWORD(lParam);
/* update the window sizes */ /* update the window sizes */
pHHInfo->pHHWinType->iNavWidth += pt.x; pHHInfo->pHHWinType->iNavWidth += pt.x;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment