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, dispx, dispy // 表示サイズ(p7,p8)を指定するとそのサイズまでしか正常に表示されない
winsetstyle , 0x00010000 // WS_MAXIMIZEBOX
width 400, 300 // コレでも最大化ボタンは再描画される
stop
|