hhctrl.ocx: Properly handle negative coordinates for mouse events.
This commit is contained in:
parent
7cca856315
commit
44e8ead5d0
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue