# RichEdit::SetModify

## Description

Sets or clears the modification flag for this RichEdit control.

## Syntax

void SetModify( BOOL bModified = TRUE )


## Parameters

bModified
A value of TRUE indicates that the text has been modified,
and a value of FALSE indicates it is unmodified. By default, the modified flag is set.

## Return

void

Remarks

Call this function to set or clear the modified flag for an edit control.

The modified flag indicates whether or not the text within the edit control

has been modified. It is automatically set whenever the user changes the text.

Its value can be retrieved with the GetModify member function.

## Examples

EX1

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

void RichEdit_SetModify(Dialog& EditBoxes)
{
RichEdit richEdit = EditBoxes.GetItem(IDC_RICHEDIT1);
richEdit.SetModify();
}