ホーム › UI.Controls › BufferedPaintRenderAnimation
BufferedPaintRenderAnimation
関数進行中のバッファアニメーションの現フレームを描画する。
シグネチャ
// UxTheme.dll
#include <windows.h>
BOOL BufferedPaintRenderAnimation(
HWND hwnd,
HDC hdcTarget
);パラメーター
| 名前 | 型 | 方向 |
|---|---|---|
| hwnd | HWND | in |
| hdcTarget | HDC | in |
戻り値の型: BOOL
各言語での呼び出し定義
// UxTheme.dll
#include <windows.h>
BOOL BufferedPaintRenderAnimation(
HWND hwnd,
HDC hdcTarget
);[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("UxTheme.dll", ExactSpelling = true)]
static extern bool BufferedPaintRenderAnimation(
IntPtr hwnd, // HWND
IntPtr hdcTarget // HDC
);<DllImport("UxTheme.dll", ExactSpelling:=True)>
Public Shared Function BufferedPaintRenderAnimation(
hwnd As IntPtr, ' HWND
hdcTarget As IntPtr ' HDC
) As Boolean
End Function' hwnd : HWND
' hdcTarget : HDC
Declare PtrSafe Function BufferedPaintRenderAnimation Lib "uxtheme" ( _
ByVal hwnd As LongPtr, _
ByVal hdcTarget As LongPtr) As Long
' VBA7前提(PtrSafe)。32bit Office では LongPtr→Long。Integer=16bit / Long=32bit / LongLong=64bit。import ctypes
from ctypes import wintypes
BufferedPaintRenderAnimation = ctypes.windll.uxtheme.BufferedPaintRenderAnimation
BufferedPaintRenderAnimation.restype = wintypes.BOOL
BufferedPaintRenderAnimation.argtypes = [
wintypes.HANDLE, # hwnd : HWND
wintypes.HANDLE, # hdcTarget : HDC
]require 'fiddle'
require 'fiddle/import'
lib = Fiddle.dlopen('UxTheme.dll')
BufferedPaintRenderAnimation = Fiddle::Function.new(
lib['BufferedPaintRenderAnimation'],
[
Fiddle::TYPE_VOIDP, # hwnd : HWND
Fiddle::TYPE_VOIDP, # hdcTarget : HDC
],
Fiddle::TYPE_INT)#[link(name = "uxtheme")]
extern "system" {
fn BufferedPaintRenderAnimation(
hwnd: *mut core::ffi::c_void, // HWND
hdcTarget: *mut core::ffi::c_void // HDC
) -> i32;
}
// crates: windows-sys provides ready-made bindings for this API.$sig = @"
[return: MarshalAs(UnmanagedType.Bool)]
[DllImport("UxTheme.dll")]
public static extern bool BufferedPaintRenderAnimation(IntPtr hwnd, IntPtr hdcTarget);
"@
$api = Add-Type -MemberDefinition $sig -Name 'UxTheme_BufferedPaintRenderAnimation' -Namespace Win32 -PassThru
# $api::BufferedPaintRenderAnimation(hwnd, hdcTarget)#uselib "UxTheme.dll"
#func global BufferedPaintRenderAnimation "BufferedPaintRenderAnimation" sptr, sptr
; BufferedPaintRenderAnimation hwnd, hdcTarget ; 戻り値は stat
; hwnd : HWND -> "sptr"
; hdcTarget : HDC -> "sptr"
; ※HSP3.7は #func のため戻り値はシステム変数 stat に格納されます。#uselib "UxTheme.dll"
#cfunc global BufferedPaintRenderAnimation "BufferedPaintRenderAnimation" sptr, sptr
; res = BufferedPaintRenderAnimation(hwnd, hdcTarget)
; hwnd : HWND -> "sptr"
; hdcTarget : HDC -> "sptr"; BOOL BufferedPaintRenderAnimation(HWND hwnd, HDC hdcTarget)
#uselib "UxTheme.dll"
#cfunc global BufferedPaintRenderAnimation "BufferedPaintRenderAnimation" intptr, intptr
; res = BufferedPaintRenderAnimation(hwnd, hdcTarget)
; hwnd : HWND -> "intptr"
; hdcTarget : HDC -> "intptr"import (
"golang.org/x/sys/windows"
"unsafe"
)
var (
uxtheme = windows.NewLazySystemDLL("UxTheme.dll")
procBufferedPaintRenderAnimation = uxtheme.NewProc("BufferedPaintRenderAnimation")
)
// hwnd (HWND), hdcTarget (HDC)
r1, _, err := procBufferedPaintRenderAnimation.Call(
uintptr(hwnd),
uintptr(hdcTarget),
)
_ = err // syscall.Errno (valid when the call sets last-error)
_ = r1 // BOOLfunction BufferedPaintRenderAnimation(
hwnd: THandle; // HWND
hdcTarget: THandle // HDC
): BOOL; stdcall;
external 'UxTheme.dll' name 'BufferedPaintRenderAnimation';result := DllCall("UxTheme\BufferedPaintRenderAnimation"
, "Ptr", hwnd ; HWND
, "Ptr", hdcTarget ; HDC
, "Int") ; return: BOOL●BufferedPaintRenderAnimation(hwnd, hdcTarget) = DLL("UxTheme.dll", "bool BufferedPaintRenderAnimation(void*, void*)")
# 呼び出し: BufferedPaintRenderAnimation(hwnd, hdcTarget)
# hwnd : HWND -> "void*"
# hdcTarget : HDC -> "void*"
# なでしこ1は32bit・ANSI(Shift_JIS)。文字列=char*(ANSI)、ポインタ/ハンドル=void*(4byte)。