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.

FlagMeaning
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.
posted on 2012-07-10 16:01  MarvinGeng  阅读(357)  评论(0编辑  收藏  举报