CRichEditCtx.ExGetSelmethod
Retrieves the starting and ending character positions of the selection in a rich edit control.
Syntax
FUNCTION ExGetSel OVERLOAD () AS CHARRANGE
FUNCTION ExGetSel OVERLOAD (BYREF cpMin AS LONG, BYVAL cpMax AS LONG)
Parameters
| Name | Description | |
|---|---|---|
cpMin | Character position index immediately preceding the first character in the range. | |
cpMaz | Character position immediately following the last character in the range. |
Return value
The first overloaded method returns a CHARRANGE structure with the selection range.
The second overloaded method does not return a value. The values are filled in the passed parameters.
Description
Oveloaded method to retrieve the starting and ending character positions of the selection in a rich edit control.
Example
type _charrange field = 4 cpMin as LONG cpMax as LONG end type
type CHARRANGE as _charrange
Reference
- Defined in AfxNova/CRichEditCtx.inc:1986
- Documented in Windows/WIndows Controls/RichEdit/CRichEditCtx Class.md
- Topic: CRichEditCtx Class