necessary?: base.OnPaintBackground (pevent);

  • Thread starter Thread starter John Charbonneau
  • Start date Start date
J

John Charbonneau

I'm painting the entire background of a form. My question
is is it necessary to call base.OnPaintBackground
(pevent); before I do my painting?

I don't want to call it because it paints the form with
the default color - a waste of time, and it causes
flickering.

Not calling it doesn't seem to cause any problems.

Thanks,

(e-mail address removed)
 
No, it isn't necessary.

See the OLH for topics "SetStyle" and ControlStyles enum - discusses
double-buffering, ignoring WM_ERASEBKGND, etc. to reduce flicker, among
paint optimization topics..

--
Regards,

Jim Allison
(e-mail address removed)
(de-mung by removing '.1')
 
Back
Top