Exemplo n.º 1
0
        public static IOleDropTarget GetRegisteredDropTargetFromWnd(IntPtr hWnd)
        {
            IOleDropTarget pRetVal  = null;
            IntPtr         pUnknown = GetProp(hWnd, "OleDropTargetInterface");

            if (pUnknown != IntPtr.Zero)
            {
                Guid   interfaceIdGuid = new Guid("00000122-0000-0000-C000-000000000046");
                IntPtr outIntPtr;
                Marshal.QueryInterface(pUnknown, ref interfaceIdGuid, out outIntPtr);
                if (outIntPtr != IntPtr.Zero)
                {
                    return((IOleDropTarget)Marshal.GetObjectForIUnknown(outIntPtr));
                }
            }
            return(pRetVal);
        }
Exemplo n.º 2
0
 public int GetDropTarget(IOleDropTarget pDropTarget, out IOleDropTarget ppDropTarget)
 {
     //  Debug.WriteLine("GetDropTarget");
     ppDropTarget = null;
     return(HRESULT.E_NOTIMPL);
 }
Exemplo n.º 3
0
 public int GetDropTarget(IOleDropTarget pDropTarget, out IOleDropTarget ppDropTarget)
 {
     ppDropTarget = null;
     return(1);
 }
 public static extern int RegisterDragDrop(IntPtr hwnd, IOleDropTarget target);
 public static extern int RegisterDragDrop(HandleRef hwnd, IOleDropTarget target);
Exemplo n.º 6
0
 public int GetDropTarget(IOleDropTarget pDropTarget, out IOleDropTarget ppDropTarget)
 {
     //  Debug.WriteLine("GetDropTarget");
     ppDropTarget = null;
     return HRESULT.E_NOTIMPL;
 }
Exemplo n.º 7
0
 public int GetDropTarget(IOleDropTarget pDropTarget, out IOleDropTarget ppDropTarget)
 {
     ppDropTarget = null;
     return 1;
 }
Exemplo n.º 8
0
 public static extern IntPtr RegisterDragDrop(IntPtr hwnd, IOleDropTarget dropTarget);