EN_PROTECTED notification code

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 code in the form of a WM_NOTIFY message.


EN_PROTECTED

    penProtected = (ENPROTECTED *) lParam; 

Parameters

lParam

An ENPROTECTED structure containing information about the message that triggered the notification code.

Return value

Return zero to allow the operation.

Return a nonzero value to prevent the operation.

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 notification codes, specify ENM_PROTECTED in the mask sent with the EM_SETEVENTMASK message.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Richedit.h

See also

Reference
ENPROTECTED
WM_NOTIFY

 

 

Community Additions

ADD
Show:
© 2014 Microsoft