Поделиться через


CRichEditCtrl::SetEventMask

Sets the event mask for this CRichEditCtrl object.

DWORD SetEventMask(
   DWORD dwEventMask 
);

Параметры

  • dwEventMask
    The new event mask for this CRichEditCtrl object.

Возвращаемое значение

The previous event mask.

Заметки

The event mask specifies which notification messages the CRichEditCtrl object sends to its parent window.

For more information, see EM_SETEVENTMASK in the Windows SDK.

Пример

// 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 Class

CRichEditCtrl Members

Hierarchy Chart

CRichEditCtrl::GetEventMask