Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

CRichEditView::SetParaFormat 

Call this function to set the paragraph formatting attributes for the current selection in this CRichEditView object.


BOOL SetParaFormat(
   PARAFORMAT2& pf 
);

Parameters

pf

PARAFORMAT2 structure containing the new default paragraph formatting attributes.

Nonzero if successful; otherwise, 0.

Only the attributes specified by the dwMask member of pf are changed by this function.

For more information, see EM_SETPARAFORMAT message and PARAFORMAT2 structure in the Platform SDK.

void CMyRichEditView::AddBullets() 
{
   PARAFORMAT2 pf;

   pf.cbSize = sizeof(PARAFORMAT2);
   pf.dwMask = PFM_NUMBERING | PFM_OFFSET;
   pf.wNumbering = PFN_BULLET;
   pf.dxOffset = 10;

   VERIFY( SetParaFormat( pf ) );
}

Community Additions

ADD
Show:
© 2015 Microsoft