CXxxxView::OnDraw が以下の様な場合,それを単純にプリンタに送る
{
CXxxxDoc* pDoc = GetDocument();
CRect drawRect ;
GetClientRect(drawRect) ;
pDoc->Object.Draw(pDC,drawRect,…) ;
}
{
CXxxxDoc* pDoc = GetDocument();
CRect drawRect ;
GetClientRect(drawRect) ;
pDoc->Object.Draw(pDC,drawRect,…) ;
}
CXxxxView::OnPrint を追加.
void CXxxxView::OnPrint(CDC* pDC, CPrintInfo* pInfo)
{
CXxxxDoc* pDoc = GetDocument();
CRect drawRect ;
drawRect = pInfo->m_rectDraw ;
pDoc->Object.Draw(pDC,drawRect,…) ;
// CView::OnPrint(pDC, pInfo);
}