This documentation is archived and is not being maintained.


Call this function to set the printing margins for this rich edit view.

void SetMargins(
   const CRect& rectMargin 


The new margin values for printing, measured in MM_TWIPS.

If m_nWordWrap is WrapToTargetDevice, you should call WrapChanged after using this function to adjust printing characteristics.

Note that the margins used by PrintPage are relative to the physical page, not the logical page. Thus, margins of zero will often clip the text since many printers have unprintable areas on the page. To avoid clipping your text, you should call use SetMargins to set reasonable printer margins before printing.

Header: afxrich.h