This documentation is archived and is not being maintained.


Determines if the contents of this CRichEditCtrl object have been modified.

BOOL GetModify( ) const;

Nonzero if the text in this CRichEditCtrl object has been modified; otherwise 0.

Windows maintains an internal flag indicating whether the contents of the rich edit control have been changed. This flag is cleared when the edit control is first created and can also be cleared by calling the SetModify member function.

For more information, see EM_GETMODIFY in the Platform SDK.

// The pointer to my rich edit control.
extern CRichEditCtrl* pmyRichEditCtrl;

// Reset the modified state only if the text has been modified.
if (pmyRichEditCtrl->GetModify())