win32: fix scrollbar regression (issue #0015717)

git-svn-id: trunk@23912 -
This commit is contained in:
paul 2010-03-10 08:40:34 +00:00
parent a77478ebb9
commit 1613c3ab5f

View File

@ -1562,9 +1562,10 @@ begin
if LParam <> 0 then
begin
ChildWindowInfo := GetWin32WindowInfo(HWND(LParam));
lWinControl := ChildWindowInfo^.WinControl;
if Assigned(ChildWindowInfo^.ParentMsgHandler) then
begin
if ChildWindowInfo^.ParentMsgHandler(ChildWindowInfo^.WinControl,
if ChildWindowInfo^.ParentMsgHandler(lWinControl,
Window, Msg, WParam, LParam, PLMsg^.Result, WinProcess) then Exit(PLMsg^.Result);
end;
end;