CRichEditCtrl::SetEventMask

DWORD SetEventMask( DWORD dwEventMask );

Return Value

The previous event mask.

Parameters

dwEventMask

The new event mask for this CRichEditCtrl object.

Remarks

Call this function to set the event mask for this CRichEditCtrl object. The event mask specifies which notification messages the CRichEditCtrl object sends to its parent window.

For more information, see EM_SETEVENTMASK in the Win32 documentation.

Example

// 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);

CRichEditCtrl OverviewClass MembersHierarchy Chart

See Also   CRichEditCtrl::GetEventMask