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

This commit is contained in:
Alexandre Julliard 2006-10-25 17:41:58 +02:00
parent 7cca856315
commit 44e8ead5d0
1 changed files with 4 additions and 1 deletions

View File

@ -132,7 +132,10 @@ static void SB_OnLButtonDown(HWND hWnd, WPARAM wParam, LPARAM lParam)
static void SB_OnLButtonUp(HWND hWnd, WPARAM wParam, LPARAM lParam)
{
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 */
pHHInfo->pHHWinType->iNavWidth += pt.x;