Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

CEdit::GetModify 

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 Platform SDK.

// 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);
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.