Mouse position is signed.
This commit is contained in:
parent
24d4ebfdd0
commit
30eaa59c2a
|
@ -393,7 +393,7 @@ HEADER_InternalHitTest (HWND hwnd, LPPOINT lpPt, UINT *pFlags, INT *pItem)
|
||||||
*pFlags |= HHT_TOLEFT;
|
*pFlags |= HHT_TOLEFT;
|
||||||
}
|
}
|
||||||
else if (lpPt->x > rect.right) {
|
else if (lpPt->x > rect.right) {
|
||||||
TRACE("TO LEFT\n");
|
TRACE("TO RIGHT\n");
|
||||||
*pFlags |= HHT_TORIGHT;
|
*pFlags |= HHT_TORIGHT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1234,8 +1234,8 @@ HEADER_LButtonUp (HWND hwnd, WPARAM wParam, LPARAM lParam)
|
||||||
INT nItem, nWidth;
|
INT nItem, nWidth;
|
||||||
HDC hdc;
|
HDC hdc;
|
||||||
|
|
||||||
pt.x = (INT)LOWORD(lParam);
|
pt.x = (INT)SLOWORD(lParam);
|
||||||
pt.y = (INT)HIWORD(lParam);
|
pt.y = (INT)SHIWORD(lParam);
|
||||||
HEADER_InternalHitTest (hwnd, &pt, &flags, &nItem);
|
HEADER_InternalHitTest (hwnd, &pt, &flags, &nItem);
|
||||||
|
|
||||||
if (infoPtr->bPressed) {
|
if (infoPtr->bPressed) {
|
||||||
|
@ -1297,8 +1297,8 @@ HEADER_MouseMove (HWND hwnd, WPARAM wParam, LPARAM lParam)
|
||||||
INT nItem, nWidth;
|
INT nItem, nWidth;
|
||||||
HDC hdc;
|
HDC hdc;
|
||||||
|
|
||||||
pt.x = (INT)LOWORD(lParam);
|
pt.x = (INT)SLOWORD(lParam);
|
||||||
pt.y = (INT)HIWORD(lParam);
|
pt.y = (INT)SHIWORD(lParam);
|
||||||
HEADER_InternalHitTest (hwnd, &pt, &flags, &nItem);
|
HEADER_InternalHitTest (hwnd, &pt, &flags, &nItem);
|
||||||
|
|
||||||
if ((dwStyle & HDS_BUTTONS) && (dwStyle & HDS_HOTTRACK)) {
|
if ((dwStyle & HDS_BUTTONS) && (dwStyle & HDS_HOTTRACK)) {
|
||||||
|
|
Loading…
Reference in New Issue