The EM_SETEVENTMASK message sets the event mask for a rich edit control. The event mask specifies which notification messages the control sends to its parent window.
Syntax
To send this message, call the SendMessage function as follows. lResult = SendMessage( // returns LRESULT in lResult hWndControl, // (HWND) handle to destination control EM_SETEVENTMASK, // (UINT) message ID wParam, // = () wParam; lParam // = () lParam; );
lResult = SendMessage( // returns LRESULT in lResult hWndControl, // (HWND) handle to destination control EM_SETEVENTMASK, // (UINT) message ID wParam, // = () wParam; lParam // = () lParam; );
Parameters
wParam This parameter is not used; it must be zero. lParam New event mask for the rich edit control. For a list of event masks, see Rich Edit Control Event Mask Flags.
Return Value
This message returns the previous event mask.
Remarks
The default event mask (before any is set) is ENM_NONE.
Message Information
HeaderDeclared in Richedit.hMinimum operating systems Windows 95, Windows NT 4.0
See Also
EM_GETEVENTMASK, Rich Edit Control Event Mask Flags