返回当前视区坐标.
[id(139), helpstring("method GetViewCoord")] void GetViewCoord(DOUBLE* pLbx, DOUBLE* pLby, DOUBLE* pRtx, DOUBLE* pRty);
参数 |
说明 |
DOUBLE* pLbx |
视区坐标左上角X值 |
DOUBLE* pLby |
视区坐标左上角Y值 |
DOUBLE* pRtx |
视区坐标右下角X值 |
DOUBLE* pRty |
视区坐标右下角Y值 |
例如: JS
var pRet = mxOcx.CallLongParam1("Mx_GetViewCoord", 1); if (pRet.AtString(0) == "Ok") { alert( "LBx:" + pRet.AtDouble(1) + "LBy:" + pRet.AtDouble(2) + "Rtx:" + pRet.AtDouble(3) + "Rty:" + pRet.AtDouble(4)); } else { alert("调用失败"); }