public int OleGiveFeedback(int dwEffect) { GiveFeedbackEventArgs gfbevent = new GiveFeedbackEventArgs((DragDropEffects)dwEffect, true); peer.OnGiveFeedback(gfbevent); if (gfbevent.UseDefaultCursors) { return(DragDropSUseDefaultCursors); } return(0); }
public HRESULT GiveFeedback(Ole32.DROPEFFECT dwEffect) { var gfbevent = new GiveFeedbackEventArgs((DragDropEffects)dwEffect, true); _peer.OnGiveFeedback(gfbevent); if (gfbevent.UseDefaultCursors) { return(HRESULT.DRAGDROP_S_USEDEFAULTCURSORS); } return(HRESULT.S_OK); }