This topic has not yet been rated - Rate this topic

CRichEditView::GetPrintRect

Call this function to retrieve the bounds of the printing area within the page rectangle.

CRect GetPrintRect( ) const;

Return Value

The bounds of the image area used in printing, measured in MM_TWIPS.

Example

BOOL CMyRichEditView::OnPreparePrinting(CPrintInfo* pInfo)
{

   CRect rectPrintPage = GetPrintRect();  // Measured in MM_TWIPS

   SetMaxPage( (m_nDocSizeInInches * 1440)/rectPrintPage.Height() );
   return DoPreparePrinting(pInfo);
}

See Also

CRichEditView Overview | Class Members | Hierarchy Chart | CRichEditView::GetMargins | CRichEditView::GetPrintWidth | CRichEditView::GetPaperSize | CRichEditView::GetPageRect | CRichEditView::PrintPage

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.