import win.ui;
//创建弹出菜单
winform.popmenu = win.ui.popmenu(winform);
winform.popmenu.add('关闭',function(id){
winform.close();
});
winform.listview.onnotify = function(id,code,ptr){
if(code=="0xFFFFFFFB")/*_NM_RCLICK*/ {
var x,y = win.getCursorPos();
winform.popmenu.popup(x,y,true);//弹出菜单
}
}