Called on a paste or drag to determine if the data pasted/dragged should be accepted.
HRESULT QueryAcceptData(
LPDATAOBJECT lpdataobj,
CLIPFORMAT FAR *lpcfFormat,
DWORD reco,
BOOL fReally,
HGLOBAL hMetaPict
);
RECO_DROP | Drop operation (drag and drop). |
RECO_PASTE | Paste from the clipboard. |
Returns success status. If the SCODE of the result is a failure SCODE, the rich edit control refuses the data and terminates the operation. If the SCODE of the result is S_OK, the control checks the data itself for acceptable formats. A return of a successful SCODE other than S_OK means that the callback either checked the data itself (if fReally is FALSE) or imported the data itself (if fReally is TRUE).
If the application returns a successful result other than S_OK, a rich edit control will not check the read-only state of the edit control.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in richole.h.
Rich Edit Controls Overview, Rich Edit OLE Interfaces, IRichEditOleCallback