It is decided:
Using F1 to get the syntax for OnDrop and others, MSDN gave me:
virtual BOOL OnDrop( CWnd* pWnd, COleDataObject* pDataObject, DROPEFFECT dropEffect, CPoint point );
But the correct virtual function does not have the first parameter and should be:
virtual BOOL OnDrop( COleDataObject* pDataObject, DROPEFFECT dropEffect, CPoint point );
Same thing with others. Therefore, I never redefined the default functions.
source share