Rich Edit Control Event Mask Flags

The event mask specifies which notification messages a rich edit control sends its parent window. The event mask can be zero or more of these values:

Value Meaning
ENM_CHANGE Sends EN_CHANGE notifications.
ENM_CORRECTTEXT Sends EN_CORRECTTEXT notifications.
ENM_DROPFILES Sends EN_DROPFILES notifications.
ENM_KEYEVENTS Sends EN_MSGFILTER notifications for keyboard events.
ENM_MOUSEEVENTS Sends EN_MSGFILTER notifications for mouse events.
ENM_PROTECTED Sends EN_PROTECTED notifications.
ENM_RESIZEREQUEST Sends EN_REQUESTRESIZE notifications.
ENM_SCROLL Sends EN_HSCROLL notifications.
ENM_SELCHANGE Sends EN_SELCHANGE notifications.
ENM_UPDATE Sends EN_UPDATE notifications.

The default event mask is ENM_NONE in which case no notification messages are sent to the parent window. You can retrieve and set the event mask for a rich edit control by using the ENM_GETEVENTMASK and ENM_SETEVENTMASK messages.