CRichEdit.GetRectmethod
Retrieves the formatting rectangle of a rich edit control.
Syntax
SUB GetRect (BYVAL hRichEdit AS HWND, BYVAL prc AS RECT PTR)
Parameters
| Name | Description | |
|---|---|---|
hRichEdit | The handle of the rich edit control. | |
prc | A pointer to a RECT structure that receives the formatting rectangle. |
Description
Retrieves the formatting rectangle of an edit control. 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.
Remarks
You can modify the formatting rectangle of a multiline edit control by using the SeRect and SeRectNP messages.
Under certain conditions, GetRect might not return the exact values that SeRect and SeRectNP set it will be approximately correct, but it can be off by a few pixels.
The formatting rectangle does not include the selection bar, which is an unmarked area to the left of each paragraph. When clicked, the selection bar selects the line.
Reference
- Defined in AfxNova/CRichEdit.inc:606
- Documented in Windows/WIndows Controls/CRichEdit Class.md
- Topic: CRichEdit Class