源代码:

import win.ui;
/*DSG{{*/
var winform = win.form(parent=...; text="aardio Form";right=349;bottom=249 )
winform.add( )
/*}}*/


winform.show()

winform.wndproc = function(hwnd,message,wparam,lparam){
select(message) {//判断消息类型
case 0x10/*_WM_CLOSE窗口关闭消息*/{
if(win.msgboxTest("你要关闭窗口么?","询问")=false){
return wparam;
}
}

}
//无返回值则继续调用默认回调函数
}

win.loopMessage();
return winform;