OnPrepareDC(&dc); 在其基类中实际上就是调用了 CPoint pt=-m_pScrollView->GetDeviceScrollPosition(); pDC->SetViewportOrg(pt);