Click to See Complete Forum and Search --> : Invalidate question


herb
October 14th, 1999, 01:25 PM
Sometimes only a small rectangle is invalidated,
and only this part is redrawn. I want invalidate
always the whole window. How can I inforce this
at the beginning of OnDraw(CDC *pDC) ?!?

Any help is appreciated!
Herb,
Cheers.


-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
e8827684@student.tuwien.ac.at
http://stud2.tuwien.ac.at/~e8827684/home.html

Praveen
October 14th, 1999, 01:31 PM
Hi
you should not do any invalidation in OnDraw() because Invalidation will again call OnDraw() so program
will be in infinite loop.
Best way to do is in any other operation like mouse messages or menu operations.
Call Invalidate(NULL) this would invalidate whole client area.
Praveen

PRAVEEN
October 14th, 1999, 01:31 PM
Hi
you should not do any invalidation in OnDraw() because Invalidation will again call OnDraw() so program
will be in infinite loop.
Best way to do is in any other operation like mouse messages or menu operations.
Call Invalidate(NULL) this would invalidate whole client area.
Praveen