Share via


CRichEditCtrl::SetEventMask

Sets the event mask for this CRichEditCtrl object.

DWORD SetEventMask( 
   DWORD dwEventMask  
);

Parameters

  • dwEventMask
    The new event mask for this CRichEditCtrl object.

Return Value

The previous event mask.

Remarks

The event mask specifies which notification messages the CRichEditCtrl object sends to its parent window.

For more information, see EM_SETEVENTMASK in the Windows SDK.

Example

// Set the event mask so that the parent gets notified when the text 
// of the rich edit control changes. 
m_myRichEditCtrl.SetEventMask(m_myRichEditCtrl.GetEventMask() |
   ENM_CHANGE);

Requirements

Header: afxcmn.h

See Also

Reference

CRichEditCtrl Class

Hierarchy Chart

CRichEditCtrl::GetEventMask