共用方式為


CRichEditView::GetPrintRect

呼叫此函式以擷取資料的繫結在網頁內的矩形。

CRect GetPrintRect( ) const;

傳回值

用於列印的影像區域的界限,以 MM_TWIPS

範例

void CMyRichEditView::OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo)
{
   CRect rectPrintPage = GetPrintRect();  // Measured in MM_TWIPS

   pInfo->SetMaxPage((m_nDocSizeInInches * 1440)/rectPrintPage.Height());

   CRichEditView::OnBeginPrinting(pDC, pInfo);
}

需求

Header: afxrich.h

請參閱

參考

CRichEditView 類別

階層架構圖

CRichEditView::GetMargins

CRichEditView::GetPrintWidth

CRichEditView::GetPaperSize

CRichEditView::GetPageRect

CRichEditView::PrintPage