OnPrepareDC

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
T

Tony Johansson

Hello!

I have this overridden OnPrepareDC and at the end of this method the base
class OnPrepareDC is called.
If remove the call to the base class this OnPrepareDC work the same. So
calling the base class has not affect in this example.
If you override the OnPrepareDC is it really necessary to call
CView::OnPrepareDC(pDC, pInfo);?


void CEx04aView::OnPrepareDC(CDC* pDC, CPrintInfo* pInfo)
{
pDC->SetMapMode(MM_HIMETRIC);
CView::OnPrepareDC(pDC, pInfo);
}

//Tony
 
If you override the OnPrepareDC is it really necessary to call
CView::OnPrepareDC(pDC, pInfo);?

It depends on the circumstance. There's some information on what to do
in different situations in the remarks section of the
CView::OnPrepareDC documentation.

Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top