CRichEditCtrl::GetModify
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 Windows SDK.
// Reset the modified state only if the text has been modified.
if (m_myRichEditCtrl.GetModify())
m_myRichEditCtrl.SetModify(FALSE);
Header: afxcmn.h