public int GetDropTarget(Interop.IOleDropTarget pDropTarget, out Interop.IOleDropTarget ppDropTarget) { if (this.htmlEditor._dropTarget == null) { this.htmlEditor._dropTarget = new DropTarget(this.htmlEditor, DataObjectConverter, pDropTarget); ppDropTarget = this.htmlEditor._dropTarget; return(Interop.S_OK); } else { ppDropTarget = null; //pDropTarget; return(Interop.S_FALSE); } }
internal DropTarget(HtmlEditor htmlEditor, DataObjectConverter dataObjectConverter, Interop.IOleDropTarget pDropTarget) { this.htmlEditor = htmlEditor; _originalDropTarget = pDropTarget; _dropInfo = new DropInfo(); _dropInfo.Converter = dataObjectConverter; if (DragIcons == null) { DragIcons = new Hashtable(21); DragIcons.Add(DragDropCommands.Anchor, "WSIconAnchor.ico"); DragIcons.Add(DragDropCommands.Break, "WSIconBreak.ico"); DragIcons.Add(DragDropCommands.Button, "WSIconButton.ico"); DragIcons.Add(DragDropCommands.Div, "WSIconDIV.ico"); DragIcons.Add(DragDropCommands.Form, "WSIconForm.ico"); DragIcons.Add(DragDropCommands.HorizontalRule, "WSIconHRule.ico"); DragIcons.Add(DragDropCommands.Textbox, "WSIconInputText.ico"); DragIcons.Add(DragDropCommands.Checkbox, "WSIconInputCheckBox.ico"); DragIcons.Add(DragDropCommands.RadioButton, "WSIconInputRadioButton.ico"); DragIcons.Add(DragDropCommands.SubmitButton, "WSIconOKButton.ico"); DragIcons.Add(DragDropCommands.ListBox, "WSIconSelectList.ico"); DragIcons.Add(DragDropCommands.DropDown, "WSIconDropDownList.ico"); DragIcons.Add(DragDropCommands.Paragraph, "WSIconParagraph.ico"); DragIcons.Add(DragDropCommands.FileButton, "WSIconFileButton.ico"); DragIcons.Add(DragDropCommands.Password, "WSIconInputPassW.ico"); DragIcons.Add(DragDropCommands.ResetButton, "WSIconButton.ico"); DragIcons.Add(DragDropCommands.ImageButton, "WSIconInputImage.ico"); DragIcons.Add(DragDropCommands.HiddenField, "WSIconInputHidden.ico"); DragIcons.Add(DragDropCommands.Span, "WSIconSpan.ico"); DragIcons.Add(DragDropCommands.Image, "WSIconImage.ico"); DragIcons.Add(DragDropCommands.Table, "WSIconTable.ico"); DragIcons.Add(DragDropCommands.TextArea, "WSIconTextArea.ico"); } DragCursor = new Hashtable(); System.IO.Stream st; string s = "GuruComponents.Netrix.Resources.DragCursors."; st = this.GetType().Assembly.GetManifestResourceStream(String.Concat(s, "DefaultNot.ico")); DragCursor.Add("DefaultNot.ico", new System.Windows.Forms.Cursor(st)); st = this.GetType().Assembly.GetManifestResourceStream(String.Concat(s, "DefaultMove.ico")); DragCursor.Add("DefaultMove.ico", new System.Windows.Forms.Cursor(st)); st = this.GetType().Assembly.GetManifestResourceStream(String.Concat(s, "DefaultCopy.ico")); DragCursor.Add("DefaultCopy.ico", new System.Windows.Forms.Cursor(st)); }
public DropTarget(HtmlControl owner, DataObjectConverter converter, Interop.IOleDropTarget originalDropTarget) { this._owner = owner; this._converter = converter; this._originalDropTarget = originalDropTarget; }
public int GetDropTarget(Interop.IOleDropTarget pDropTarget, out Interop.IOleDropTarget ppDropTarget) { ppDropTarget = null; // no other drop target return(Interop.S_OK); }
public int GetDropTarget(Interop.IOleDropTarget pDropTarget, out Interop.IOleDropTarget ppDropTarget) { ppDropTarget = null; return(Interop.E_NOTIMPL); }