大家可能会发现ArcMap默认的鼠标滚轮进行图像放大缩小的操作,与其他平台(如百度地图,AutoCAD等)的操作习惯相反,ArcMap的鼠标向上是缩小,向下是放大。可能会引起部分人操作不习惯。
因此,有必要更改一下系统的默认操作。
来看具体的方法:
打开ArcMap,在ArcMap的Tool中找到Options打开。将Roll Forward/Drag Up 更改为Zooms In 就可以了。
使用AE进行二次开发也会碰到这样的问题,如果软件部署的机器上安装了ArcMap,通过上述方法进行设置就可以了。而如果没有安装ArcMap,只安装了Arcgis Engine runtime的话,需要通过代码修改注册表来实现。
private void ReverseMouseWheel()
{
try
{
RegistryKey setKey = Registry.CurrentUser.OpenSubKey(@"Software\ESRI\ArcMap\Settings" , true);
if (setKey != null )
{
if (setKey.GetValue("ReverseMouseWheel" ) == null)
{
setKey.SetValue( "ReverseMouseWheel", 0, RegistryValueKind.DWord);
}
else if (setKey.GetValue("ReverseMouseWheel" ).ToString() != "0")
{
setKey.SetValue( "ReverseMouseWheel", 0);
}
}
}
catch { }
}

浙公网安备 33010602011771号