예제 #1
0
        public int OleGiveFeedback(int dwEffect)
        {
            GiveFeedbackEventArgs gfbevent = new GiveFeedbackEventArgs((DragDropEffects)dwEffect, true);

            peer.OnGiveFeedback(gfbevent);
            if (gfbevent.UseDefaultCursors)
            {
                return(DragDropSUseDefaultCursors);
            }
            return(0);
        }
예제 #2
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);
        }