Share via


EM_CANPASTE

Send Feedback

The EM_CANPASTE message determines whether a rich edit control can paste a specified clipboard format.

To send this message, call the SendMessage function with the following parameters.

SendMessage(
  (HWND) hWnd,
  EM_CANPASTE,
  (WPARAM) wParam,
  (LPARAM) lParam 
);

Parameters

  • hWnd
    The handle to the destination window.
  • EM_CANPASTE
    The message to send.
  • wParam
    Specifies the clipboard format to try. Set this parameter to zero to try any format currently on the clipboard.
  • lParam
    Reserved; set to zero.

Return Values

Nonzero if the clipboard format can be pasted.

Zero if the clipboard format cannot be pasted.

Remarks

#define EM_CANPASTE (WM_USER + 50)

This message is detailed in Richedit.h, not RichInk.h.

Requirements

Pocket PC: Pocket PC 2000 and later
Smartphone: None
OS Versions: Windows CE 3.0 and later
Header: richink.h
Library: richink.lib

See Also

RichInk Control Messages

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.