|
系统变量名:OSMODE
去掉最近点捕捉标志(C++代码): - MrxDbgRbList spVal = Mx::mcutNewRb(RTSHORT);
- Mx::mcedGetVar(_T("OSMODE"),spVal.data());
- // 最近点捕足的值为512,进行位运算,去掉最近点捕捉标志
- int iNewMode = spVal.data()->resval.rint & (~512);
- // 设置新值
- spVal.data()->resval.rint = iNewMode;
- Mx::mcedSetVar(_T("OSMODE"),spVal.data() );
复制代码关闭捕捉(C#代码): - axMxDrawX1.SetSysVarLong("OSMODE", 0);
复制代码
|
|