CRichEditCtrl::GetSelectionCharFormat

DWORD GetSelectionCharFormat( CHARFORMAT& cf ) const;

Return Value

The dwMask data member of cf. It specifies the character formatting attributes that are consistent throughout the current selection.

Parameters

cf

Pointer to a CHARFORMAT structure to receive the character formatting attributes of the current selection.

Remarks

Call this function to get the character formatting attributes of the current selection. The cf parameter receives the attributes of the first character in the current selection. The return value specifies which attributes are consistent throughout the selection.

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

CRichEditCtrl OverviewClass MembersHierarchy Chart

See Also   CRichEditCtrl::GetDefaultCharFormat, CRichEditCtrl::GetParaFormat, CRichEditCtrl::SetSelectionCharFormat, CRichEditCtrl::GetSelText