Call this function to determine whether the contents of an edit control have been modified.

BOOL GetModify( ) const;

Nonzero if the edit-control contents have been modified; 0 if they have remained unchanged.

Windows maintains an internal flag indicating whether the contents of the edit control have been changed. This flag is cleared when the edit control is first created and may 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 my edit has been modified. 
if (m_myEdit.GetModify())

Header: afxwin.h

Community Additions