Condividi tramite


CEditView::PrintInsideRect

Call PrintInsideRect to print text in the rectangle specified by rectLayout.

UINT PrintInsideRect(
   CDC *pDC,
   RECT& rectLayout,
   UINT nIndexStart,
   UINT nIndexStop 
);

Parameters

  • pDC
    Pointer to the printer device context.

  • rectLayout
    Reference to a CRect object or RECT structure specifying the rectangle in which the text is to be rendered.

  • nIndexStart
    Index within the buffer of the first character to be rendered.

  • nIndexStop
    Index within the buffer of the character following the last character to be rendered.

Return Value

The index of the next character to be printed (that is, the character following the last character rendered).

Remarks

If the CEditView control does not have the style ES_AUTOHSCROLL, text is wrapped within the rendering rectangle. If the control does have the style ES_AUTOHSCROLL, the text is clipped at the right edge of the rectangle.

The rect.bottom element of the rectLayout object is changed so that the rectangle's dimensions define the part of the original rectangle that is occupied by the text.

Requirements

Header: afxext.h

See Also

Reference

CEditView Class

Hierarchy Chart

CEditView::SetPrinterFont

CEditView::GetPrinterFont

Other Resources

CEditView Members