Help Center

CRichEdit.InsertImagemethod

Replaces the selection with a blob that displays an image.

Windowsmethoddocumented

Syntax

FUNCTION InsertImage (BYVAL hRichEdit AS HWND, BYVAL lpip AS RICHEDIT_IMAGE_PARAMETERS PTR) AS DWORD

Parameters

NameDescription
hRichEditThe handle of the rich edit control.
lpipA pointer to a RICHEDIT_IMAGE_PARAMETERS structure that contains the image blob.

Return value

Returns S_OK if successful, or one of the following error codes.

Description

Replaces the selection with a blob that displays an image.

Reference

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