EN_MSGFILTER

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; 
 

Parameters

uID
Identifier of the rich edit control.
lpMsgFilter
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 Values

Returns a nonzero value if the control should process the event, or zero if the control should ignore the event.

Remarks

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.

QuickInfo

  Windows NT: Requires version 3.51 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in richedit.h.

See Also

Rich Edit Controls Overview, Rich Edit Notification Messages, MSGFILTER, WM_NOTIFY