Help Center

CRichEditCtx.RectNPmethod

Sets the formatting rectangle of a multiline rich edit control.

Windowsmethoddocumented

Syntax

SUB SetRectNP (BYVAL fCoord AS LONG, BYREF rc AS .RECT)

Parameters

NameDescription
fCoord(SET) Rich Edit 3.0 and later: Indicates whether prect specifies absolute or relative coordinates. A value of zero indicates absolute coordinates. A value of 1 indicates offsets relative to the current formatting rectangle. (The offsets can be positive or negative.)
rc(SET) A RECT structure that specifies the new dimensions of the rectangle. If this parameter is NULL, the formatting rectangle is set to its default values.

Return value

This property does not return a value.

Description

Sets the formatting rectangle of a multiline rich edit control. It is identical to the Rect property, except that RectNP does not redraw the edit control window.

The formatting rectangle is the limiting rectangle into which the control draws the text. The limiting rectangle is independent of the size of the edit control window.

This message is processed only by multiline edit controls. You can send this message to either an edit control or a rich edit control.

Example

(SET) PROPERTY RectNP (BYVAL fCoord AS LONG, BYREF rc AS .RECT)

Reference

  • Defined in AfxNova/CRichEditCtx.inc:1650
  • Documented in Windows/WIndows Controls/RichEdit/CRichEditCtx Class.md
  • Topic: CRichEditCtx Class