Help Center

CRichEdit.GetSelTextmethod

Retrieves the currently selected text in a rich edit control.

Windowsmethoddocumented

Syntax

FUNCTION GetSelText (BYVAL hRichEdit AS HWND) AS DWSTRING

Parameters

NameDescription
hRichEditThe handle of the rich edit control.

Return value

The selected text as a DWSTRING (dynamic unicode string).

Description

Retrieves the currently selected text in a rich edit control.

Reference

  • Defined in AfxNova/CRichEdit.inc:641
  • Documented in Windows/WIndows Controls/CRichEdit Class.md
  • Topic: CRichEdit Class