[lazarus] LCL: WMPaint

Micha Nelissen mdvpost at hotmail.com
Mon Jun 30 12:06:31 EDT 2003


Mattias Gaertner wrote:
> On Mon, 30 Jun 2003 12:54:59 +0200
> "Micha Nelissen" <mdvpost at hotmail.com> wrote:
>
>> Mattias Gaertner wrote:
>>> On Mon, 30 Jun 2003 07:54:29 +0200
>>> "Micha Nelissen" <mdvpost at hotmail.com> wrote:
>>>
>>>> Could you apply to the other part then? I have reattached the part
>>>> that was important.
>>>
>>> I applied it.
>>> Although I think, the DC=Unused is a dirty hack. Is there any
>>> reason, to not use a flag in TWinControl?
>>
>> Alike FNextWMEraseBkGndIsFromOurselves := true? No problem, i'd say.
>> I just copied this code from how delphi does it.
>>
>> It seems FBrush is not always initialized, ie. it is nil. Can you
>> add code to initialize it?
>
> Added.

Nice! Thanks.

Cosmetic BTW: The line with the TODO comment in TWinControl.WMPaint can be
removed (since you solved the hack). Also, the comment on line 2464 of
wincontrol.inc seems to be indented quite a lot :); TWinControl.WMKeyUp.

Regards,

Micha.






More information about the Lazarus mailing list