mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-22 01:59:12 +02:00
lcl: TControlCanvas: simplify
git-svn-id: trunk@52495 -
This commit is contained in:
parent
dd7ec70032
commit
925bc15836
@ -99,9 +99,7 @@ begin
|
|||||||
else
|
else
|
||||||
WinControl := FControl.Parent;
|
WinControl := FControl.Parent;
|
||||||
WinControl.HandleNeeded;
|
WinControl.HandleNeeded;
|
||||||
end;
|
|
||||||
if FDeviceContext = 0 then
|
|
||||||
begin
|
|
||||||
// store the handle locally since we need it to check (and do not
|
// store the handle locally since we need it to check (and do not
|
||||||
// want to fire creation events)
|
// want to fire creation events)
|
||||||
FDeviceContext := FControl.GetDeviceContext(FWindowHandle);
|
FDeviceContext := FControl.GetDeviceContext(FWindowHandle);
|
||||||
|
Loading…
Reference in New Issue
Block a user