MFC中RichEdit控制~

本文介绍MFC中的RichEdit控制及其事件掩码。事件掩码用于指定富编辑控件发送给父窗口的通知消息,可以是ENM_NONE(默认,不发送通知)或其他组合值。可以通过EM_GETEVENTMASK和EM_SETEVENTMASK消息来获取和设置事件掩码。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 
Rich Edit Control Event Mask Flags

The event mask specifies which notification messages a rich edit control sends to its parent window. The event mask can be none or a combination of these values.

ValueMeaning
ENM_CHANGESends EN_CHANGE notifications.
ENM_CORRECTTEXTSends EN_CORRECTTEXT notifications.
ENM_DRAGDROPDONESends EN_DRAGDROPDONE notifications.
ENM_DROPFILESSends EN_DROPFILES notifications.
ENM_IMECHANGERich Edit 1.0 only: Sends EN_IMECHANGE notifications when the IME conversion status has changed. Only for Asian-language versions of the operating system.
ENM_KEYEVENTSSends EN_MSGFILTER notifications for keyboard events.
ENM_LINKRich Edit 2.0 and later: Sends EN_LINK notifications when the mouse pointer is over text that has the CFE_LINK and one of several mouse actions is performed.
ENM_MOUSEEVENTSSends EN_MSGFILTER notifications for mouse events.
ENM_OBJECTPOSITIONSSends EN_OBJECTPOSITIONS notifications.
ENM_PROTECTEDSends EN_PROTECTED notifications.
ENM_REQUESTRESIZESends EN_REQUESTRESIZE notifications.
ENM_SCROLLSends EN_HSCROLL and EN_VSCROLL notifications.
ENM_SCROLLEVENTSSends EN_MSGFILTER notifications for mouse wheel events.
ENM_SELCHANGESends EN_SELCHANGE notifications.
ENM_UPDATESends EN_UPDATE notifications.

Rich Edit 2.0 and later: this flag is ignored and the EN_UPDATE notifications are always sent. However, if Rich Edit 3.0 emulates Rich Edit 1.0, you must use this flag to sendEN_UPDATE notifications..


The default event mask is ENM_NONE in which case no notification messages are sent to the parent window. You can retrieve and set the event mask for a rich edit control by using theEM_GETEVENTMASK and EM_SETEVENTMASK messages.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值