다음을 통해 공유


CRichEditView::OnCharEffect

Call this function to toggle the character formatting effects for the current selection.

void OnCharEffect(
   DWORD dwMask,
   DWORD dwEffect 
);

Parameters

  • dwMask
    The character formatting effects to modify in the current selection.

  • dwEffect
    The desired list of character formatting effects to toggle.

Remarks

Each call to this function toggles the specified formatting effects for the current selection.

For more information on the dwMask and dwEffect parameters and their potential values, see the corresponding data members of CHARFORMAT in the Windows SDK.

Example

void CMyRichEditView::OnItalic()
{
   OnCharEffect( CFM_ITALIC, CFE_ITALIC );
}

Requirements

Header: afxrich.h

See Also

Concepts

CRichEditView Class

CRichEditView Members

Hierarchy Chart

CRichEditView::SetCharFormat