CRichEdit.SetScrollPosmethod
Tells the rich edit control to scroll to a particular point.
Syntax
FUNCTION SetScrollPos (BYVAL hRichEdit AS HWND, BYVAL pt AS POINT PTR) AS DWORD
Parameters
| Name | Description | |
|---|---|---|
hRichEdit | The handle of the rich edit control. | |
pt | Pointer to a POINT) structure which specifies a point in the virtual text space of the document, expressed in pixels. The document will be scrolled until this point is located in the upper-left corner of the edit control window. If you want to change the view such that the upper left corner of the view is two lines down and one character in from the left edge. You would pass a point of (7, 22). The rich edit control checks the x and y coordinates and adjusts them if necessary, so that a complete line is displayed at the top. It also ensures that the text is never completely scrolled off the view rectangle. |
Return value
This message always returns 1.
Description
Scrolls the contents of a rich edit control to the specified point.
Reference
- Defined in AfxNova/CRichEdit.inc:1175
- Documented in Windows/WIndows Controls/CRichEdit Class.md
- Topic: CRichEdit Class