The EN_PROTECTED notification message notifies a rich edit control's parent window that the user is taking an action that would change a protected range of text. A rich edit control sends this notification message in the form of a WM_NOTIFY message.
EN_PROTECTED
wParam = (WPARAM) (UINT) uID;
lParam = (LPARAM) (ENPROTECTED FAR *) lpEnProtected;
Returns zero to allow the operation or a nonzero value to prevent it.
If zero is returned and the msg, wParam, and lParam members of the ENPROTECTED structure are changed, the control processes the revised message instead of the original message.
To receive EN_PROTECTED notifications, specify the ENM_PROTECTED flag in the mask sent with the EM_SETEVENTMASK message.
Windows NT: Requires version 3.51 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in richedit.h.
Rich Edit Controls Overview, Rich Edit Notification Messages, ENPROTECTED, WM_NOTIFY