Help Center

CRichEdit.SetModifymethod

Sets or clears the modification flag for a rich edit control. The modification flag indicates whether the text within the rich edit control has been modified.

Windowsmethoddocumented

Syntax

SUB SetModify (BYVAL hRichEdit AS HWND, BYVAL fModify AS LONG)

Parameters

NameDescription
hRichEditThe handle of the rich edit control.
fModifyThe new value for the modification flag. A value of TRUE indicates the text has been modified, and a value of FALSE indicates it has not been modified.

Description

Sets or clears the modification flag for a rich edit control. The modification flag indicates whether the text within the rich edit control has been modified.

Remarks

The system automatically clears the modification flag to zero when the control is created. If the user changes the control's text, the system sets the flag to nonzero. You can send the GetModify message to the edit control to retrieve the current state of the flag.

Rich Edit 1.0: Objects created without the REO_DYNAMICSIZE flag will lock in their extents when the modify flag is set to FALSE.

Reference

  • Defined in AfxNova/CRichEdit.inc:1085
  • Documented in Windows/WIndows Controls/CRichEdit Class.md
  • Topic: CRichEdit Class