Muokkaa

Jaa


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

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Richedit.h

See also

Reference

ENPROTECTED

WM_NOTIFY