CRichEdit.CharFromPosmethod
Retrieves information about the character closest to a specified point in the client area of a rich edit control.
Syntax
FUNCTION CharFromPos (BYVAL hRichEdit AS HWND, BYVAL lppl AS POINTL PTR) AS LONG
Parameters
| Name | Description | |
|---|---|---|
hRichEdit | The handle of the rich edit control. | |
lppl | A pointer to a POINTL structure that contains the horizontal and vertical coordinates of a point in the control's client area. The coordinates are in screen units and are relative to the upper-left corner of the control's client area. |
Return value
The return value specifies the zero-based character index of the character nearest the specified point. The return value indicates the last character in the edit control if the specified point is beyond the last character in the control.
Description
Gets information about the character closest to a specified point in the client area of a rich edit control.
Reference
- Defined in AfxNova/CRichEdit.inc:265
- Documented in Windows/WIndows Controls/CRichEdit Class.md
- Topic: CRichEdit Class