Click to See Complete Forum and Search --> : Device Context


aznandy
October 25th, 1999, 02:03 PM
In MFC: In my application, the printed work is completely different than what my users will see on their monitors. Thus, I want to erase everything done by my OnDraw() function before the document gets printed. How would I erase it? Is there a member function that does this? Or do I have to do it the hard way...

&d http://www.angelfire.com/ct/aznandy

mdangers
October 25th, 1999, 02:23 PM
Hi !

you could directly call CWnd::OnErasebkgng(CDC* pDC).
Before you do this you will have to call CWnd::Invalidate(TRUE)
to mark the entire clientarea as invalid.

Hope this helps,

Matthias.


I had a thought,
You know, I thought it a lot,
I thought I was smart,
Now I know that I'm not

- The Presidents Of The United States Of America