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