CDocument::SetModifiedFlag

Call this member function after you've made any modifications to the document. By calling this function consistently, you ensure that the framework prompts the user to save changes before closing a document.

Syntax

void SetModifiedFlag( BOOL bModified = TRUE );

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CDocument Overview, CDocument Member Functions, Application Architecture Classes, CDocument::IsModified, CDocument::SaveModified