More WSRegister changes by BrunoK. Issue #37360

git-svn-id: trunk@63687 -
This commit is contained in:
martin 2020-08-04 11:20:02 +00:00
parent c4cc91f21d
commit 17af06e4e4
2 changed files with 10 additions and 0 deletions

View File

@ -79,9 +79,14 @@ begin
end;
class procedure TCustomControl.WSRegisterClass;
const
Registered : boolean = False;
begin
if Registered then
Exit;
inherited WSRegisterClass;
RegisterCustomControl;
Registered := True;
end;
{------------------------------------------------------------------------------

View File

@ -231,9 +231,14 @@ begin
end;
class procedure TScrollingWinControl.WSRegisterClass;
const
Registered : boolean = False;
begin
if Registered then
Exit;
inherited WSRegisterClass;
RegisterScrollingWinControl;
Registered := True;
end;
procedure TScrollingWinControl.ScrollBy(DeltaX, DeltaY: Integer);