CRichEditCtrl::GetModify

确定是否修改此 CRichEditCtrl 对象的内容。

BOOL GetModify( ) const;

返回值

非零,如果修改了此 CRichEditCtrl 对象的文本;否则为0。

备注

Windows维护指示内容丰富是否的内部标志编辑控件已更改。 清除此标志,在编辑控件首先创建并可通过调用 SetModify 成员函数或清除。

有关更多信息,请参见 Windows SDK的 EM_GETMODIFY

示例

// Reset the modified state only if the text has been modified.
if (m_myRichEditCtrl.GetModify())
   m_myRichEditCtrl.SetModify(FALSE);

要求

Header: afxcmn.h

请参见

参考

CRichEditCtrl选件类

层次结构图

CRichEditCtrl::SetModify