win32 interface: fixed position for right click events of listviews in a groupbox (#8768)

git-svn-id: trunk@11153 -
This commit is contained in:
vincents 2007-05-16 12:27:36 +00:00
parent 18c708fb14
commit 211710b030

View File

@ -1682,6 +1682,7 @@ begin
(WindowInfo^.WinControl is TCustomListView) then
begin
WinProcess := false;
lWinControl := WindowInfo^.WinControl;
PLMsg:=@LMMouse;
With LMMouse Do
Begin
@ -2084,7 +2085,7 @@ begin
// are expected.
if (PLMsg = @LMMouseMove) and not (lWinControl is TScrollingWinControl) then
begin
if GetLCLClientBoundsOffset(Window, R) then
if GetLCLClientBoundsOffset(lWinControl, R) then
begin
Dec(LMMouseMove.XPos, R.Left);
Dec(LMMouseMove.YPos, R.Top);
@ -2092,7 +2093,7 @@ begin
end else
if (PLMsg = @LMMouse) and not (lWinControl is TScrollingWinControl) then
begin
if GetLCLClientBoundsOffset(Window, R) then
if GetLCLClientBoundsOffset(lWinControl, R) then
begin
Dec(LMMouse.XPos, R.Left);
Dec(LMMouse.YPos, R.Top);