This documentation is archived and is not being maintained.


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

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


Pointer to a CCmdUI object.


Indicates the character formatting mask.


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

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

Header: afxrich.h