CDocument::IsModified
Call this function to determine whether the document has been modified since it was last saved.
virtual BOOL IsModified( );
Return Value
Nonzero if the document has been modified since it was last saved; otherwise 0.
Requirements
Header: afxwin.h