LCL: added capfHasScrollOffset into ControlAtPos in WMContextMenu so offset is ok when control is inside scrolled control. issue #23584

git-svn-id: trunk@39922 -
This commit is contained in:
zeljko 2013-01-20 18:11:52 +00:00
parent 835664f7f6
commit 0d3fac65e3

View File

@ -8136,7 +8136,7 @@ begin
begin
// don't allow disabled and don't search wincontrols - they receive their
// message themself
Child := ControlAtPos(ScreenToClient(SmallPointToPoint(Message.Pos)), []);
Child := ControlAtPos(ScreenToClient(SmallPointToPoint(Message.Pos)), [capfHasScrollOffset]);
if Assigned(Child) then
with Message do
begin