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);

必要条件

ヘッダー: afxcmn.h

参照

関連項目

CRichEditCtrl クラス

階層図

CRichEditCtrl::GetEventMask