mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-10 08:28:14 +02:00
parent
16d50a7062
commit
3b28882b67
@ -1202,7 +1202,13 @@ begin
|
||||
if TheMessage.DC <> 0 then begin
|
||||
Include(FFlags,dfNeedPainting);
|
||||
|
||||
DDC.SetDC(Form, Sender as TWinControl, TheMessage.DC);
|
||||
if Sender is TWinControl then
|
||||
DDC.SetDC(Form, TWinControl(Sender), TheMessage.DC)
|
||||
else
|
||||
if Sender <> nil then
|
||||
DDC.SetDC(Form, Sender.Parent, TheMessage.DC)
|
||||
else
|
||||
DDC.SetDC(Form, nil, TheMessage.DC);
|
||||
{$IFDEF VerboseDesignerDraw}
|
||||
writeln('TDesigner.PaintControl D ',Sender.Name,':',Sender.ClassName,
|
||||
' DC=',DbgS(DDC.DC,8),
|
||||
|
Loading…
Reference in New Issue
Block a user