Help Center

CRichEdit.SetEventMaskmethod

Sets the event mask for a rich edit control.

Windowsmethoddocumented

Syntax

FUNCTION SetEventMask (BYVAL hRichEdit AS HWND, BYVAL fMask AS LONG) AS LONG

Parameters

NameDescription
hRichEditThe handle of the rich edit control.
fMaskNew event mask for the rich edit control. For a list of event masks, see Rich Edit Control Event Mask Flags below.

Return value

This message returns the previous event mask.

Description

Sets the event mask for a rich edit control.

Remarks

The default event mask is ENM_NONE in which case no notifications are sent to the parent window. You can retrieve and set the event mask for a rich edit control by using the GetEvenMask and SetEventMask messages.

Reference

  • Defined in AfxNova/CRichEdit.inc:1010
  • Documented in Windows/WIndows Controls/CRichEdit Class.md
  • Topic: CRichEdit Class