何が間違っているのでしょうか。
#uselib "user32.dll" #func SetParent "SetParent" int, int #func SetWindowLong "SetWindowLongA" int, int, int #func GetWindowLong "GetWindowLongA" int, int #define GWL_STYLE 0xFFFFFFF0 #define WS_POPUP 0x80000000 #define WS_CHILD 0x40000000 screen 0, 640, 480 hParent = hwnd screen 1, 300, 200 hChild1 = hwnd GetWindowLong hChild1, GWL_STYLE SetWindowLong hChild1, GWL_STYLE, stat ^ WS_POPUP | WS_CHILD SetParent hChild1, hParent