ll_libload user, "user32.dll"
ll_getproc CreateWindowEx, "CreateWindowExA", user
ll_getproc SendMessage, "SendMessageA", user
#module
#deffunc radiobtn str, int
mref caption, 32 : mref grstart, 1
mref stt, 64
mref bmscr, 67
dim prm ,12
name = "Button"
ll_getptr name : ll_ret p.0
ll_getptr caption : ll_ret p.1
prm = 0, p, p.1, 0x50000009 + (grstart ! 0 * 0x20000), csrx, csry, bmscr.29, bmscr.30, bmscr.13, 0, bmscr.14
ll_callfunc prm, 12, CreateWindowEx@
pos csrx, csry + bmscr.30
ll_ret prm : stt = prm
return
#deffunc clrxobj int
mref h, 0
prm = h, 0x0010, 0, 0
ll_callfunc prm, 4, SendMessage@
return
#global
color 224, 223, 227 : boxf : color
objsize 100, 20
pos 10, 10 : mes "グループ1"
radiobtn "test1", 1
radiobtn "test2"
radiobtn "test3"
pos 150, 10 : mes "グループ2"
radiobtn "test4", 1
radiobtn "test5"
clrxobj stat // 直前の拡張オブジェクトを消してみるテスト
radiobtn "test6"
stop
|