Пример #1
0
 public int GetDropTarget(Interop.IOleDropTarget pDropTarget, out Interop.IOleDropTarget ppDropTarget)
 {
     if (this._dropTarget == null)
     {
         HtmlEditor hostControl = this.hostControl as HtmlEditor;
         if (hostControl != null)
         {
             DataObjectConverter dataObjectConverter = hostControl.DataObjectConverter;
             if (dataObjectConverter != null)
             {
                 this._dropTarget = new DropTarget(hostControl, dataObjectConverter, pDropTarget);
             }
         }
     }
     ppDropTarget = this._dropTarget;
     if (this._dropTarget != null)
     {
         return 0;
     }
     return -2147467263;
 }
Пример #2
0
 int NativeMethods.IDocHostUIHandler.GetDropTarget(NativeMethods.IOleDropTarget pDropTarget, out NativeMethods.IOleDropTarget ppDropTarget)
 {
     ppDropTarget = new DropTarget(new DataObjectConverter(), pDropTarget);
     return (ppDropTarget != null) ? NativeMethods.S_OK : NativeMethods.E_NOTIMPL;
 }