Help Center

CRichEdit.PasteSpecialmethod

Pastes a specific clipboard format in a rich edit control.

Windowsmethoddocumented

Syntax

PRIVATE SUB CRichEdit.PasteSpecial (BYVAL hRichEdit AS HWND, BYVAL clpfmt AS DWORD, BYVAL lprps AS REPASTESPECIAL PTR)

Parameters

NameDescription
hRichEditThe handle of the rich edit control.
clpfmtSpecifies the Clipboard Formats.
lprpsPointer to a 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.

Description

Pastes a specific clipboard format in a rich edit control.

Example

SUB PasteSpecial (BYVAL hRichEdit AS HWND, BYVAL clpfmt AS DWORD, BYVAL lprps AS REPASTESPECIAL PTR) SendMessageW hRichEdit, EM_PASTESPECIAL, clpfmt, cast(LPARAM, lprps) END SUB

Reference

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