win32 interface: fixed TSmallPomt to WParam typecast (issue #11954)

git-svn-id: trunk@16206 -
This commit is contained in:
vincents 2008-08-24 13:02:04 +00:00
parent 3b7fe72130
commit 236126e7ee

View File

@ -186,7 +186,7 @@ var
Pos.Y := Y;
end;
ClientToScreen(Handle, Pos);
WParam := Windows.WParam(PointToSmallPoint(Pos));
WParam := Windows.WParam(Longint(PointToSmallPoint(Pos)));
if Windows.SendMessage(Handle, WM_NCHITTEST, 0, WParam) = HTHSCROLL then
begin