CRichEditCtrl::GetDefaultCharFormat

Gets the default character formatting attributes of this CRichEditCtrl object.

DWORD GetDefaultCharFormat(
   CHARFORMAT& cf 
) const;
DWORD GetDefaultCharFormat(
   CHARFORMAT2& cf 
) const;

Parameters

  • cf
    In the first version, a pointer to a CHARFORMAT structure holding the default character formatting attributes.

    In the second version, a pointer to a CHARFORMAT2 structure, which is a Rich Edit 2.0 extension to the CHARFORMAT structure, holding the default character formatting attributes.

Return Value

The dwMask data member of cf. It specified the default character formatting attributes.

Remarks

For more information, see the EM_GETCHARFORMAT message and the CHARFORMAT and CHARFORMAT2 structures in the Windows SDK.

Example

See the example for SetDefaultCharFormat.

Requirements

Header: afxcmn.h

See Also

Reference

CRichEditCtrl Class

Hierarchy Chart

CRichEditCtrl::SetDefaultCharFormat

CRichEditCtrl::GetSelectionCharFormat

CRichEditCtrl::GetParaFormat

Other Resources

CRichEditCtrl Members