次の方法で共有


CEdit::GetModify

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

BOOL GetModify( ) const;

Return Value

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

Remarks

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.

Example

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

Requirements

Header: afxwin.h

See Also

Reference

CEdit Class

Hierarchy Chart

CEdit::SetModify