CRichEditCtrl::SetEventMask
TOC
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

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:
© 2016 Microsoft