MSGFILTER structure (richedit.h)

Contains information about a keyboard or mouse event. A rich edit control sends this structure to its parent window as part of an EN_MSGFILTER notification code, enabling the parent to change the message or prevent it from being processed.

Syntax

typedef struct _msgfilter {
  NMHDR  nmhdr;
  UINT   msg;
  WPARAM wParam;
  LPARAM lParam;
} MSGFILTER;

Members

nmhdr

Type: NMHDR

The code member of the NMHDR structure is the EN_MSGFILTER notification code that identifies the message being sent.

msg

Type: UINT

Keyboard or mouse message identifier.

wParam

Type: WPARAM

The wParam parameter of the message.

lParam

Type: LPARAM

The lParam parameter of the message.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header richedit.h

See also

EN_MSGFILTER