EM_SETMODIFY

2.x

EM_SETMODIFY
wParam = (WPARAM) (UINT) fModified;     /* modification flag      */
lParam = 0L;                            /* not used, must be zero */

An application sends an EM_SETMODIFY message to set or clear the modification flag for an edit control. The modification flag indicates whether the text within the edit control has been modified. It is automatically set whenever the user changes the text. An EM_GETMODIFY message can be sent to retrieve the value of the modification flag.

Parameters

fModified

Value of wParam. Specifies the new value for the modification flag. A value of TRUE indicates the text has been modified, and a value of FALSE indicates it has not been modified.

Return Value

This message does not return a value.

Example

This example sends an EM_SETMODIFY message to clear the modification flag:

SendDlgItemMessage(hdlg, ID_MYEDITCONTROL, EM_SETMODIFY, FALSE, 0L);

See Also

EM_GETMODIFY