win32: a trial to fix a range check error Martin has found

git-svn-id: trunk@27725 -
This commit is contained in:
paul 2010-10-17 02:23:09 +00:00
parent 32c7dba3c0
commit f1dec0d4e0

View File

@ -539,7 +539,7 @@ begin
h := Windows.ChildWindowFromPointEx(h, Windows.POINT(P), CWP_SKIPINVISIBLE or CWP_SKIPDISABLED);
HitTestCode := SendMessage(h, WM_NCHITTEST, 0, LParam((CursorPos.X and $FFFF) or (CursorPos.Y shl 16)));
SendMessage(h, WM_SETCURSOR, h, MakeLong(HitTestCode, WM_MOUSEMOVE));
SendMessage(h, WM_SETCURSOR, WParam(h), MakeLong(HitTestCode, WM_MOUSEMOVE));
end;
class procedure TWin32WSWinControl.SetShape(const AWinControl: TWinControl;