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 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 message and structure in the Win32 documentation.

Example

See the example for SetSelectionCharFormat.

CRichEditCtrl OverviewClass MembersHierarchy Chart

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