//嵌入外部程序窗口
import win.ui;
/*DSG{{*/
var winform = win.form(parent=...; text="AAuto Form";right=349;bottom=249 )
winform.add(  )
/*}}*/

import winex; 
import process;

process.execute("notepad.exe");
hwnd = winex.findActivate( ,,"Notepad","Edit" )

win.setParent(hwnd,winform.hwnd)
win.setPos(hwnd,0,0)

winform.show(0x3/*_SW_MAXIMIZE*/) 
win.loopMessage();
