共用方式為


CRichEditCtrl::SetEventMask

設定這 CRichEditCtrl 物件的事件遮罩。

DWORD SetEventMask(
   DWORD dwEventMask 
);

參數

  • dwEventMask
    CRichEditCtrl 物件的新事件遮罩。

傳回值

上一個事件遮罩。

備註

事件遮罩指定哪些物件 CRichEditCtrl 通知訊息傳送給其父視窗。

如需詳細資訊,請參閱 Windows SDK的 EM_SETEVENTMASK

範例

// Set the event mask so that the parent gets notified when the text
// of the rich edit control changes. 
m_myRichEditCtrl.SetEventMask(m_myRichEditCtrl.GetEventMask() |
   ENM_CHANGE);

需求

Header: afxcmn.h

請參閱

參考

CRichEditCtrl 類別

階層架構圖

CRichEditCtrl::GetEventMask