Home Forums General XMetaL Discussion Disable Drag&Drop for Images in XMAX Reply To: Disable Drag&Drop for Images in XMAX

XMetaLOldTimer

Reply to: Disable Drag&Drop for Images in XMAX

You should be able to cancel the drop but you need to implement the _IXMetaLControlEvents::OnDrop event sink function in your application.  The XMAX OnDrop event sink has this signature:

HRESULT OnDrop(IDataObject* dropDataObject, LONG keyState, LONG X, LONG Y, IntegerRefVar* dropEffect, Range* dropPoint, BoolRefVar* handled)

If you set “handled” to VARIANT_TRUE and dropEffect to DROPEFFECT_NONE (from Win32 constants), that should do it.

Regards,
Addam

Reply

Products
Downloads
Support