MFC中RichEdit控制~

来源:互联网 发布:贵阳大数据招聘2017 编辑:程序博客网 时间:2024/06/07 04:48
 

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.

ValueMeaningENM_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 andEM_SETEVENTMASK messages.

原创粉丝点击