Share via


EM_GETRECT (Compact 2013)

3/28/2014

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

See Also

Reference

Edit Box Messages
EM_SETRECT
EM_SETRECTNP
RECT