BOOL GetModify( ) const;
Return Value
Nonzero if the text in this CRichEditCtrl object has been modified; otherwise 0.
Remarks
Call this function to determine if the contents of this CRichEditCtrl object have been modified.
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 Win32 documentation.
Example
// The pointer to my rich edit control.
extern CRichEditCtrl* pmyRichEditCtrl;
// Reset the modified state only if the text has been modified.
if (pmyRichEditCtrl->GetModify())
pmyRichEditCtrl->SetModify(FALSE);
CRichEditCtrl Overview | Class Members | Hierarchy Chart
See Also CRichEditCtrl::SetModify