The EN_MSGFILTER notification message notifies a rich edit control's parent window of a keyboard or mouse event in the control. A rich edit control sends this notification message in the form of a WM_NOTIFY message.
EN_MSGFILTER
wParam = (WPARAM) (UINT) uID;
lParam = (LPARAM) (MSGFILTER) lpMsgFilter;
Returns a nonzero value if the control should process the event, or zero if the control should ignore the event.
To receive EN_MSGFILTER notifications for keyboard events, specify the ENM_KEYEVENTS flag in the mask sent with the EM_SETEVENTMASK message. To receive EN_MSGFILTER notifications for mouse events, specify the ENM_MOUSEEVENTS flag.
Windows NT: Requires version 3.51 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in richedit.h.
Rich Edit Controls Overview, Rich Edit Notification Messages, MSGFILTER, WM_NOTIFY