Help Center

CRichEdit.CanPastemethod

Determines whether a rich edit control can paste a specified clipboard format.

Windowsmethoddocumented

Syntax

FUNCTION CanPaste (BYVAL hRichEdit AS HWND, BYVAL clipformat AS LONG) AS LONG

Parameters

NameDescription
hRichEditThe handle of the rich edit control.
clipformatSpecifies the Clipboard Formats to try. To try any format currently on the clipboard, set this parameter to zero.

Return value

If the clipboard format can be pasted, the return value is a nonzero value.

If the clipboard format cannot be pasted, the return value is zero.

Description

Determines whether a rich edit control can paste a specified clipboard format.

Reference

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