得到用户自定义事件的参数
[id(91), helpstring("method CustomEventParam")]
IDispatch* CustomEventParam();例如: JS下的代码
<script>
function CustomEvent(sEventName)
{
if(sEventName == "Mx_UpdateDisplay")
{
// 视区更新
// alert("Mx_UpdateDisplay");
var eventParam = document.getElementById("MxDrawXCtrl1").CustomEventParam();
if(eventParam.AtLong(0) == 1)
{
alert("更新显示缓存");
}
}
}
document.getElementById("MxDrawXCtrl1").ImplementCustomEvent = CustomEvent;
</script>