Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

CRichEditView::OnUpdateCharEffect 

The framework calls this function to update the command UI for character effect commands.


void OnUpdateCharEffect(
   CCmdUI* pCmdUI,
   DWORD dwMask,
   DWORD dwEffect 
);

Parameters

pCmdUI

Pointer to a CCmdUI object.

dwMask

Indicates the character formatting mask.

dwEffect

Indicates the character formatting effect.

The mask dwMask specifies which character formatting attributes to check. The flags dwEffect list the character formatting attributes to set/clear.

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

void CMyRichEditView::OnUpdateCharItalicUI(CCmdUI* pCmdUI)
{
   OnUpdateCharEffect(pCmdUI, CFM_ITALIC, CFE_ITALIC);
}

Community Additions

ADD
Show:
© 2015 Microsoft