CEditView::PrintInsideRect

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

Return Value

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

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.

Remarks

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

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.

CEditView OverviewClass MembersHierarchy Chart

See Also   CEditView::SetPrinterFont, CEditView::GetPrinterFont