Help Center

CRichEdit.ExGetSelmethod

Retrieves the starting and ending character positions of the selection in a rich edit control.

Windowsmethoddocumented

Syntax

SUB ExGetSel (BYVAL hRichEdit AS HWND, BYVAL lpchr AS CHARRANGE PTR)

Parameters

NameDescription
hRichEditThe handle of the rich edit control.
lpchrA 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