Help Center

CRichEdit.SetTextmethod

Sets the text of an edit control.

Windowsmethoddocumented

Syntax

FUNCTION SetText (BYVAL hRichEdit AS HWND, BYVAL pwszText AS WSTRING PTR) AS LONG

Parameters

NameDescription
hRichEditThe handle of the rich edit control.
pwszTextA pointer to a null-terminated string that is the window text.

Return value

The return value is TRUE if the text is set.

Description

Sets the text of an edit control.

Reference

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