内部で動かないように修正
#include "user32.as"
screen 0,640,480:hParent=hwnd
title "メモ帳のっとり大作戦"
exec "notepad"
FindWindow 0,"無題 - メモ帳":hChild=stat
SetParent hChild,hParent
sendmsg hChild,0x112,0xF030
GetSystemMenu hChild,0
hSystemMenu=stat
GetWindowLong hParent,-16
SetWindowLong hChild,-16,stat //親のものに子も変更
; $F000=サイズ変更、$F010=移動、$F020=最小化、$F030=最大化、
; $F060=閉じる、$F120=元のサイズに戻す、$0=区切り線
DeleteMenu hSystemMenu,0,0
DeleteMenu hSystemMenu,0xF000,0
DeleteMenu hSystemMenu,0xF010,0
DeleteMenu hSystemMenu,0xF020,0
DeleteMenu hSystemMenu,0xF030,0
DeleteMenu hSystemMenu,0xF120,0