Help Center

CRichEditCtx.Selection2method

Gets the active selection.

Windowsmethoddocumented

Syntax

PRIVATE FUNCTION CRichEditCtx.Selection2 () AS ITextSelection2 PTR

Return value

The active selection. It will be NULL if the rich edit control is not in-place active.

Description

Gets the active selection.

Example

PRIVATE FUNCTION Selection2 () AS ITextSelection PTR PRIVATE FUNCTION GetSelection2 () AS ITextSelection PTR

Reference

  • Defined in AfxNova/CRichEditCtx.inc:4283
  • Documented in Windows/WIndows Controls/RichEdit/CRichEditCtx Class.md
  • Topic: CRichEditCtx Class