Help Center

CRichEditCtx.PasteSpecialmethod

Pastes a specific clipboard format in a rich edit control.

Windowsmethoddocumented

Syntax

SUB PasteSpecial OVERLOAD (BYVAL clpfmt AS DWORD, BYREF rps AS REPASTESPECIAL)
SUB PasteSpecial OVERLOAD (BYVAL clpfmt AS DWORD, BYVAL dwAspect AS DWORD, BYVAL hMF AS HMETAFILE)

Parameters

NameDescription
clpfmtSpecifies the Clipboard Formats.
rpsA REPASTESPECIAL structure or NULL. If an object is being pasted, the REPASTESPECIAL structure is filled in with the desired display aspect. If clpfmt is NULL or the dwAspect member is zero, the display aspect used will be the contents of the object descriptor.
dwAspectDisplay aspect. It can be one of the following values.
DVASPECT_CONTENT. Aspect is based on the content of the object.
DVASPECT_ICON. Aspect is based on the icon view of the object.
hMFAspect data. If dwAspect is DVASPECT_ICON, this member contains the handle to the metafile with the icon view of the object.

Description

Pastes a specific clipboard format in a rich edit control.

Reference

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