CEdit::GetModify

BOOL GetModify( ) const;

Return Value

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

Remarks

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

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 Win32 documentation.

Example

// The pointer to my edit.
extern CEdit* pmyEdit;

// Reset the modified state only if my edit has been modified.
if (pmyEdit->GetModify())
   pmyEdit->SetModify(FALSE);

CEdit OverviewClass MembersHierarchy Chart

See Also   CEdit::SetModify