/*
作者：lujjjh 
http://www.ecranesoft.com/bbs/showtopic-9341.aspx

修改：drbdrb 
http://www.ecranesoft.com/bbs/showtopic-9695.aspx
*/
import win.ui;
import win.ole.image;
/*DSG{{*/
var winform = win.form(parent=...; mode="popup";title=false;bottom=331;text="WEB示例3";border="none";right=529 )
winform.add(  )
/*}}*/

import web.form;
var wb = web.form( winform, 0x4/*_UIFLAG_NO3DBORDER*/ );
wb.external = winform;//允许通过网页直接访问winform对象

//导入圆角无边框窗口支持
import win.util.round;
round = win.util.round(winform)

//为web页上的标题栏提供一个弹出系统菜单的函数
winform.hitMenu = function(){ 
	round.sysmenu.popup(16,16);
}

import fsys;
import process;
winform.shellDocument = function () {
	process.execute(fsys.getSpecial( 0x002e /*_CSIDL_COMMON_DOCUMENTS*/  ));
}  
winform.hitUrl = function(){
    process.execute("iexplore.exe","http://www.ecranesoft.com/bbs/showforum-77.aspx"); //注意这里必须要是绝对路径
}

wb.go( "/res/web.html" );
wb.wait();

winform.show(true);
win.loopMessage(); 
