-
Invalidate question
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.
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
[email protected]
http://stud2.tuwien.ac.at/~e8827684/home.html
-
Re: Invalidate question
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
-
Re: Invalidate question
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