2.2.6.27.8 RichEdit::GetModify

Description

Determines if the contents of this RichEdit control have changed since the last save.

Syntax

BOOL GetModify( )

Parameters

Return

Nonzero if the text in this RichEdit control has been modified; otherwise 0.

Remarks

Call this function to determine if the contents of this RichEdit

control have been modified. Window maintains an internal flag

indicating whether the contents of the rich edit control

have been changed. This flag is cleared when the edit control

is first created and can also be cleared by calling the

SetModify member function.

Examples

EX1

#include <..\OriginLab\DialogEx.h>
#define IDC_RICHEDIT1 1001

void RichEdit_GetModify(Dialog& EditBoxes)
{
	RichEdit richEdit = EditBoxes.GetItem(IDC_RICHEDIT1);
	BOOL bModify = richEdit.GetModify();
}

Remark

See Also

Header to Include

Control.h