ll_libload user, "user32.dll"
ll_getproc SetWindowPos, "SetWindowPos", user
#module
#deffunc setobjinfo int, int, int, int, int, int
mref id, 0 : mref px, 1 : mref py, 2 : mref sx, 3 : mref sy, 4 : mref flg, 5
mref bmscr, 67
if id < 1000 : i = id + 41 : i = bmscr.i : else : i = id
prm = i, 0, px, py, sx, sy, flg = -1 * 0x0027 + (flg ! -1 * flg)
ll_callfunc prm, 7, SetWindowPos@
return
#global
info = 50, 80, 100, 60
objsize 40, 20
pos 10, 10 : mes "位置"
pos 80, 10 : input info.0
pos 120, 10 : input info.1
pos 10, 40 : mes "サイズ"
pos 80, 40 : input info.2
pos 120, 40 : input info.3
pos 200, 10 : button "変更", *change
buf = "対象ボックス"
pos info, info.1 : mesbox buf, info.2, info.3
stop
*change
setobjinfo 5, info.0, info.1, info.2, info.3
stop
|