EN_MSGFILTER notification code(RICHEDIT)

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.

C++
复制
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_KEYEVENTSTo receive notification codes for keyboard events.
ENM_MOUSEEVENTSTo receive notification codes for mouse events.
ENM_SCROLLEVENTSTo receive notification codes for a mouse wheel event.

转载于:https://www.cnblogs.com/MarvinGeng/archive/2012/07/10/2584820.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值