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,

john@3dweb.com

Re: necessary?: base.OnPaintBackground (pevent); by jwallison

jwallison
Mon Aug 25 11:54:30 CDT 2003

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
jwallison.1@bellsouth.net
(de-mung by removing '.1')



"John Charbonneau" <john@3dweb.com> wrote in message
news:033401c36a9e$38734000$a101280a@phx.gbl...
> 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,
>
> john@3dweb.com