Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CRichEditCtrl::GetDefaultCharFormat
Collapse the table of content
Expand the table of content

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 Platform SDK.

Example

See the example for SetDefaultCharFormat.

See Also

CRichEditCtrl Overview | Class Members | Hierarchy Chart | CRichEditCtrl::SetDefaultCharFormat | CRichEditCtrl::GetSelectionCharFormat | CRichEditCtrl::GetParaFormat

Show:
© 2015 Microsoft