コード例 #1
0
 public int DragOver(uint grfKeyState, POINTL pt, ref uint pdwEffect)
 {
     if (m_DragOverFunc == null)
     {
         var fp = GetFunctionPointer(4);
         m_DragOverFunc = (DragOverFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(DragOverFunc));
     }
     return(m_DragOverFunc(m_ptr, grfKeyState, pt, ref pdwEffect));
 }
コード例 #2
0
 public int Drop(IntPtr pDataObj, uint grfKeyState, POINTL pt, ref uint pdwEffect)
 {
     if (m_DropFunc == null)
     {
         var fp = GetFunctionPointer(6);
         m_DropFunc = (DropFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(DropFunc));
     }
     return(m_DropFunc(m_ptr, pDataObj, grfKeyState, pt, ref pdwEffect));
 }
コード例 #3
0
 public int TransformCoords(ref POINTL pPtlHimetric, ref POINTF pPtfContainer, uint dwFlags)
 {
     if (m_TransformCoordsFunc == null)
     {
         var fp = GetFunctionPointer(6);
         m_TransformCoordsFunc = (TransformCoordsFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(TransformCoordsFunc));
     }
     return(m_TransformCoordsFunc(m_ptr, ref pPtlHimetric, ref pPtfContainer, dwFlags));
 }