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
 
Back
Top