EM_GETRECT

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This message retrieves the formatting rectangle of an 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.

Syntax

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

Parameters

  • wParam
    Not used; set to 0.
  • lprc
    Long pointer to the RECT structure that receives the formatting rectangle.

Return Value

The return value is not a meaningful value.

Remarks

You can modify the formatting rectangle of a multiline edit control by using the EM_SETRECT and EM_SETRECTNP messages.

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
EM_SETRECTNP
RECT
Edit Boxes Messages