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