Help Center

RichEdit_GetScrollPosfunction

Obtains the current scroll position of the edit control.

Windowsfunctiondocumented

Syntax

FUNCTION RichEdit_GetScrollPos (BYVAL hRichEdit AS HWND, BYVAL lppt AS POINT PTR) AS DWORD

Parameters

NameDescription
hRichEditThe handle of the rich edit control.
lpptPointer to a POINT structure. After calling RichEdit_GetScrollPos, this parameters contains a point in the virtual text space of the document, expressed in pixels. This point will be the point that is currently located in the upper-left corner of the edit control window.

Description

Retrieves the current scroll position of the edit control.

Remarks

The values returned in the POINT structure are 16-bit values (even in the 32-bit wide fields).

Reference

  • Defined in AfxNova/AfxRichEdit.inc:437
  • Documented in Windows/WIndows Controls/RichEdit/RichEdit Procedures.md
  • Topic: RichEdit Procedures