ll_libload user, "user32.dll"
ll_getproc GetWindowLong, "GetWindowLongA", user
ll_getproc SetWindowLong, "SetWindowLongA", user
#module
#deffunc wingetstyle int
mref extflg, 0
mref stt, 64
mref bmscr, 67
prm = bmscr.13, -4 * (extflg ! 0) - 16
ll_callfunc prm, 2, GetWindowLong@
ll_ret i : stt = i
return
#deffunc winsetstyle int, int, int
mref extflg, 0 : mref aprm, 1 : mref dprm, 2
mref bmscr, 67
wingetstyle
prm = bmscr.13, -4 * (extflg ! 0) - 16, stat | aprm & (stat | aprm ^ dprm)
ll_callfunc prm, 3, SetWindowLong@
return
#global
screen 0, 400, 300, 2
winsetstyle , , 0x80000 // WS_SYSMENU
gsel 0, 1
mes "終了は「ALT+F4」で。"
stop
|