EN_MSGFILTER notification code
Notifies a rich edit control's parent window of a keyboard or mouse event in the control. A rich edit control sends this notification code in the form of a WM_NOTIFY message.
EN_MSGFILTER
pMsgFilter = (MSGFILTER *) lParam;
Parameters
-
lParam
-
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
Return zero if the control should process the keyboard or mouse event.
Return nonzero if the control should ignore the keyboard or mouse event.
Remarks
To receive EN_MSGFILTER notification codes 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 notification codes for keyboard events. |
ENM_MOUSEEVENTS | To receive notification codes for mouse events. |
ENM_SCROLLEVENTS | To receive notification codes for a mouse wheel event. |
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2003 [desktop apps only] |
Header |
|
See also
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla