This documentation is archived and is not being maintained.

CRichEditCtrl::SetEventMask 

Sets the event mask for this CRichEditCtrl object.


DWORD SetEventMask(
   DWORD dwEventMask 
);

Parameters

dwEventMask

The new event mask for this CRichEditCtrl object.

The previous event mask.

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

For more information, see EM_SETEVENTMASK in the Platform SDK.

// The pointer to my rich edit control.
extern CRichEditCtrl* pmyRichEditCtrl;

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