fix cursor position calculation (issue #7842)

git-svn-id: trunk@10478 -
This commit is contained in:
micha 2007-01-18 21:34:19 +00:00
parent abc46812c6
commit 32652db6f4

View File

@ -681,7 +681,7 @@ Var
begin
Windows.GetCursorPos(Windows.POINT(P));
Windows.ScreenToClient(Window, Windows.POINT(P));
if GetLCLClientBoundsOffset(lWinControl.Parent, BoundsOffset) then
if GetLCLClientBoundsOffset(lWinControl, BoundsOffset) then
begin
Dec(P.X, BoundsOffset.Left);
Dec(P.Y, BoundsOffset.Top);