EM_INSERTIMAGE message

Replaces the selection with a blob that displays an image.

#define EM_INSERTIMAGE       (WM_USER + 314)

Parameters

wParam

Not used; must be zero.

lParam

A 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.

Return code Description
E_FAIL
Cannot insert the image.
E_INVALIDARG
The lParam parameter is NULL or points to an invalid image.
E_OUTOFMEMORY
Insufficient memory is available.

Remarks

If the selection is an insertion point, the image blob is inserted at the insertion point.

Requirements

Requirement Value
Minimum supported client
Windows 8 [desktop apps only]
Minimum supported server
Windows Server 2012 [desktop apps only]
Header
Richedit.h

See also

EM_INSERTTABLE