EN_PROTECTED

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; 
 

Parameters

uID
Identifier of the rich edit control.
lpEnProtected
Pointer to an ENPROTECTED structure containing information about the message that triggered the notification.

Return Values

Returns zero to allow the operation or a nonzero value to prevent it.

Remarks

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.

QuickInfo

  Windows NT: Requires version 3.51 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in richedit.h.

See Also

Rich Edit Controls Overview, Rich Edit Notification Messages, ENPROTECTED, WM_NOTIFY