The EN_MSGFILTER 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.
Syntax
EN_MSGFILTER
WPARAM wParam
LPARAM lParam;
Parameters
- wParam
-
Specifies the control identifier.
- lParam
-
Pointer to a MSGFILTER structure containing information about the keyboard or mouse message. If the parent window modifies this structure and returns a nonzero value, the modified message is processed instead of the original one.
Return Value
If the control should process the event, the message returns a zero value.
If the control should ignore the event, the message returns a nonzero value.
Remarks
To receive EN_MSGFILTER notifications for events, specify one or more of the following flags in the mask sent with the EM_SETEVENTMASK message.
| Flag | Meaning |
|---|
| ENM_KEYEVENTS | To receive notifications for keyboard events. |
| ENM_MOUSEEVENTS | To receive notifications for mouse events. |
| ENM_SCROLLEVENTS | To receive notifications for a mouse wheel event. |
Notification Requirements
| Minimum DLL Version |
None |
|---|
| Header | Declared in Richedit.h |
|---|
| Minimum operating systems |
Windows 95, Windows NT 4.0 |
|---|
See Also