CRichEditCtrl::SetSelectionCharFormat

BOOL SetSelectionCharFormat( CHARFORMAT& cf );

Return Value

Nonzero if successful; otherwise, 0.

Parameters

cf

CHARFORMAT structure containing the new character formatting attributes for the current selection.

Remarks

Call this function to set the character formatting attributes for the text in the current selection in this CRichEditCtrl object. Only the attributes specified by the dwMask member of cf are changed by this function.

For more information, see EM_SETCHARFORMAT message and CHARFORMAT structure in the Win32 documentation.

CRichEditCtrl OverviewClass MembersHierarchy Chart

See Also   CRichEditCtrl::GetSelectionCharFormat, CRichEditCtrl::SetDefaultCharFormat