Help Center

CRichEditCtx.GetClientRectmethod

Retrieves the client rectangle of the rich edit control.

Windowsmethoddocumented

Syntax

FUNCTION GetClientRect (BYVAL nType AS LONG, BYREF Left AS LONG, BYREF Top AS LONG, BYREF Right AS LONG, BYREF Bottom AS LONG) AS HRESULT
FUNCTION GetClientRect (BYVAL nType AS LONG) AS .RECT

Parameters

NameDescription
nTypeThe client rectangle retrieval options. It can be a combination of the following values:
tomClientCoord: Retrieve the rectangle in client coordinates. If this value isn't specified, the function retrieves screen coordinates.
tomIncludeInset:Add left and top insets to the left and top coordinates of the client rectangle, and subtract right and bottom insets from the right and bottom coordinates.
tomTransform: Use a world transform (XFORM) provided by the host application to transform the retrieved rectangle coordinates.
LeftThe x-coordinate of the upper-left corner of the rectangle.
TopThe y-coordinate of the upper-left corner of the rectangle.
RightThe x-coordinate of the lower-right corner of the rectangle.
BottomThe y-coordinate of the lower-right corner of the rectangle.

Return value

If the method succeeds, it returns NOERROR. Otherwise, it returns an HRESULT error code.

The second overlapped structure returns a RECT structure.

Description

Retrieves the client rectangle of the rich edit control.

Reference

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