private static extern bool _GetCursorPos(out POINT lpPoint);
示例#2
0
 public static void UpdateLayeredWindow(
     IntPtr hwnd,
     SafeDC hdcDst,
     ref POINT pptDst,
     ref SIZE psize,
     SafeDC hdcSrc,
     ref POINT pptSrc,
     int crKey,
     ref BLENDFUNCTION pblend,
     ULW dwFlags)
 {
     if (!_UpdateLayeredWindow(hwnd, hdcDst, ref pptDst, ref psize, hdcSrc, ref pptSrc, crKey, ref pblend, dwFlags))
     {
         HRESULT.ThrowLastError();
     }
 }
 public static extern bool ClientToScreen(IntPtr hWnd, ref POINT point);
示例#4
0
 public static extern IntPtr MonitorFromPoint(POINT pt, MonitorOptions dwFlags);
示例#5
0
 public static extern bool ScreenToClient(IntPtr hWnd, ref POINT point);
示例#6
0
 public static void UpdateLayeredWindow(IntPtr hwnd, SafeDC hdcDst, ref POINT pptDst, ref SIZE psize, SafeDC hdcSrc, ref POINT pptSrc, int crKey, ref BLENDFUNCTION pblend, ULW dwFlags)
 {
     if (!Standard.NativeMethods._UpdateLayeredWindow(hwnd, hdcDst, ref pptDst, ref psize, hdcSrc, ref pptSrc, crKey, ref pblend, dwFlags))
     {
         HRESULT.ThrowLastError();
     }
 }
示例#7
0
 private static extern bool _UpdateLayeredWindow(IntPtr hwnd, SafeDC hdcDst, [In] ref POINT pptDst, [In] ref SIZE psize, SafeDC hdcSrc, [In] ref POINT pptSrc, int crKey, ref BLENDFUNCTION pblend, ULW dwFlags);