コード例 #1
0
 private static extern bool _UpdateLayeredWindowIntPtr(
     IntPtr hwnd,
     IntPtr hdcDst,
     IntPtr pptDst,
     IntPtr psize,
     IntPtr hdcSrc,
     IntPtr pptSrc,
     int crKey,
     ref BLENDFUNCTION pblend,
     ULW dwFlags);
コード例 #2
0
 public static void UpdateLayeredWindow(
     IntPtr hwnd,
     int crKey,
     ref BLENDFUNCTION pblend,
     ULW dwFlags)
 {
     if (!_UpdateLayeredWindowIntPtr(hwnd, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, crKey, ref pblend, dwFlags))
     {
         HRESULT.ThrowLastError();
     }
 }
コード例 #3
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);
コード例 #4
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();
     }
 }