Поделиться через


CRichEditCtrl::GetDefaultCharFormat

Gets the default character formatting attributes of this CRichEditCtrl object.

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

Параметры

  • 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 Windows SDK.

Пример

See the example for SetDefaultCharFormat.

Требования

Header: afxcmn.h

См. также

Основные понятия

CRichEditCtrl Class

CRichEditCtrl Members

Hierarchy Chart

CRichEditCtrl::SetDefaultCharFormat

CRichEditCtrl::GetSelectionCharFormat

CRichEditCtrl::GetParaFormat