CRichEdit.ExGetSelmethod
Retrieves the starting and ending character positions of the selection in a rich edit control.
Syntax
SUB ExGetSel (BYVAL hRichEdit AS HWND, BYVAL lpchr AS CHARRANGE PTR)
Parameters
| Name | Description | |
|---|---|---|
hRichEdit | The handle of the rich edit control. | |
lpchr | A pointer to a CHARRANGE structure that receives the selection range. |
Description
Retrieves the starting and ending character positions of the selection in a rich edit control.
Examples
type _charrange field = 4 cpMin as LONG cpMax as LONG end type
type CHARRANGE as _charrange
DIM chrRange AS CHARRANGE ExGetSel(hRichEdit, @chrRange)
Reference
- Defined in AfxNova/CRichEdit.inc:291
- Documented in Windows/WIndows Controls/CRichEdit Class.md
- Topic: CRichEdit Class