Reply to: Disable Drag&Drop for Images in XMAXJune 8, 2017 at 10:12 pm
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.