Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-07

WMPaint question

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marc Weustink
to Micha Nelissen: Looking at the painting code, I notice that TScrollingWinControl.WMPaint looks almost…

+ From: Micha Nelissen
+ Sent: dinsdag 1 juli 2003 15:20
+
+ Hi,
+
+ Looking at the painting code, I notice that TScrollingWinControl.WMPaint
+ looks almost identical to TCustomForm.WMPaint. I mean, both include
+ csCustomPaint while calling inherited, do even do it twice! Include(State,
+ foo) is the same as State := State + [foo], isn't it?

Yep, where the fist form is something faster

Marc

Reply by email

Micha Nelissen

Hi,

Looking at the painting code, I notice that TScrollingWinControl.WMPaint looks almost identical to TCustomForm.WMPaint. I mean, both include csCustomPaint while calling inherited, do even do it twice! Include(State, foo) is the same as State := State + [foo], isn't it?

Regards,

Micha.

Reply by email

Mattias Gaertner
to Micha Nelissen
Show quoted text 6 lines
Hi, Looking at the painting code, I notice that TScrollingWinControl.WMPaint looks almost identical to TCustomForm.WMPaint. I mean, both include csCustomPaint while calling inherited, do even do it twice! Include(State, foo) is the same as State := State + [foo], isn't it?

Yes.
Fixed.

Mattias

Reply by email