Export (0) Print
Expand All
MFC
Expand Minimize

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.

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

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

See the example for SetDefaultCharFormat.

Community Additions

ADD
Show:
© 2014 Microsoft