Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than Interfaces, prefix the name with the module name and a period.
IDropTargetHelper (Interfaces)
.
C# Definition:
...
using drawing = System.Drawing;
using IDataObject_Com = System.Runtime.InteropServices.ComTypes.IDataObject;
IDropTargetHelper dropHelper = Activator.CreateInstance(Type.GetTypeFromCLSID(new Guid("4657278A-411B-11D2-839A-00C04FD918D0"))) as IDropTargetHelper;
protected override void OnDragEnter(DragEventArgs e) {
...
var pointWpf = e.GetPosition(this);
var point = new drawing.Point(Convert.ToInt32(pointWpf.X), Convert.ToInt32(pointWpf.Y));
dropHelper.DragEnter(hWnd, e.Data as IDataObject_Com, ref point, e.Effects);
...
}
protected override void OnDrop(DragEventArgs e) {
...
var pointWpf = e.GetPosition(this);
var point = new drawing.Point(Convert.ToInt32(pointWpf.X), Convert.ToInt32(pointWpf.Y));
dropHelper.Drop(e.Data as IDataObject_Com, ref point, e.Effects);
...
}
COM interface, used for Shell themed Drag & Drop operations from you application window, for example like Windows Explorer does. Use it with IDropTargetHelper.
9/15/2010 3:31:34 PM - anonymous
Please edit this page!
Do you have...
helpful tips?
corrections to the existing content?
alternate definitions?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.