EM_SETRECTNP

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This message sets the formatting rectangle of a multiline edit control. The formatting rectangle is the limiting rectangle of the text. The limiting rectangle is independent of the size of the edit control window. When the edit control is first created, the formatting rectangle is the same as the client area of the edit control window. By using the EM_SETRECTNP message, an application can make the formatting rectangle larger or smaller than the edit control window.

The EM_SETRECTNP message is identical to the EM_SETRECT message, except that the edit control window is not redrawn.

This message is processed only by multiline edit controls.

Syntax

EM_SETRECTNP 
    wParam = 0; 
    lParam = (LPARAM)(LPRECT) lprc;

Parameters

  • wParam
    Not used; set to 0.
  • lprc
    Long pointer to a RECT structure that specifies the new dimensions of the rectangle.

Return Value

None.

Requirements

Header windows.h
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

EM_SETRECT
RECT
Edit Boxes Messages