Apply changes of commit 50994 #b62ac13515 to WinCE

git-svn-id: trunk@51010 -
This commit is contained in:
wassim 2015-12-23 18:55:20 +00:00
parent fc5f053bc6
commit 117af4aac8

View File

@ -453,7 +453,7 @@ end;
class procedure TWinCEWSWinControl.ScrollBy(const AWinControl: TWinControl;
DeltaX, DeltaY: integer);
begin
if Windows.IsWindowVisible(AWinControl.Handle) then
if AWinControl.HandleAllocated then
ScrollWindowEx(AWinControl.Handle, DeltaX, DeltaY, nil, nil, 0, nil,
SW_INVALIDATE or SW_ERASE or SW_SCROLLCHILDREN);
end;