LCL: Handle mouse events through shaped TWinControl. Issue #35270, patch from ptvs.

git-svn-id: trunk@61053 -
This commit is contained in:
juha 2019-04-24 20:18:37 +00:00
parent c966415648
commit 6096106179

View File

@ -4709,15 +4709,7 @@ begin
else
begin
// do query wincontrol children, in case they overlap
Control := ControlAtPos(SmallPointToPoint(MouseMessage.Pos),
[capfAllowWinControls]);
if Control is TWinControl then
begin
// there is a TWinControl child at this position
// TWinControl children get their own messages
// => ignore here
Control := nil;
end;
Control := ControlAtPos(SmallPointToPoint(MouseMessage.Pos), []);
end;
//DebugLn(['TWinControl.IsControlMouseMsg B ',DbgSName(Self),' Control=',DbgSName(Control),' Msg=',TheMessage.Msg]);