mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 12:40:22 +02:00
More WSRegister changes by BrunoK. Issue #37360
git-svn-id: trunk@63687 -
This commit is contained in:
parent
c4cc91f21d
commit
17af06e4e4
@ -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;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user