Help Center

CRichEditCtx.NewDocmethod

Opens a new document.

Windowsmethoddocumented

Syntax

FUNCTION NewDoc () AS HRESULT

Return value

If this method succeeds, it returns S_OK.

Description

Opens a new document. If another document is open, this method saves any current changes and closes the current document before opening a new one.

Example

pRichEdit.NewDoc

Reference

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