Help Center

RichEdit_ExSetSelfunction

Selects a range of characters and/or Component Object Model (COM) objects in a Microsoft Rich Edit control.

Windowsfunctiondocumented

Syntax

FUNCTION RichEdit_ExSetSel (BYVAL hRichEdit AS HWND, BYVAL lpcr AS CHARRANGE PTR) AS DWORD

Parameters

NameDescription
hRichEditThe handle of the rich edit control.
lpcrA pointer to a CHARRANGE structure that specifies the selection range.

Return value

The return value is the selection that is actually set.

Description

Selects a range of characters or Component Object Model (COM) objects in a Microsoft Rich Edit control.

Examples

type _charrange field = 4 cpMin as LONG cpMax as LONG end type

type CHARRANGE as _charrange

DIM chrRange AS CHARRANGE = TYPE<CHARRANGE>(3, 12) RichEdit_ExSetSel(hRichEdit, @chrRange)

Reference

  • Defined in AfxNova/AfxRichEdit.inc:131
  • Documented in Windows/WIndows Controls/RichEdit/RichEdit Procedures.md
  • Topic: RichEdit Procedures