The default scroll wheel scaling in ArcMap is a large, up-down
If you want to change to zoom up, zoom down, directly in the Arcmap-customize-arcmap options,
Change the bottom mouse Wheel and continuous Zoom/pan tool to Zoom in
In principle, modifying this property will change the Reversemousewheel value of Hkey_current_user\software\esri\desktop10.1\arcmap\settings in the registry from 1 to 0.
The default value of 1 represents a large devolution, while 0 represents a downward narrowing
However, the above modifications are not valid for ArcGIS engine in ArcGIS 10.1 version (the same should be done later)
Because this registry attribute in ArcGIS engine is in hkey_current_user\software\esri\engine10.1\arcmap\settings
In C # code, modify the registry data method as follows:
1 usingMicrosoft.Win32;2 3 Private voidReversemousewheel ()4 {5 Try6 {7RegistryKey Setkey = Registry.CurrentUser.OpenSubKey (@"software\esri\engine10.1\arcmap\settings",true);8 if(Setkey! =NULL)9 {Ten if(Setkey.getvalue ("Reversemousewheel") ==NULL) One { ASetkey.setvalue ("Reversemousewheel",0, Registryvaluekind.dword); - } - Else if(Setkey.getvalue ("Reversemousewheel"). ToString ()! ="0") the { -Setkey.setvalue ("Reversemousewheel",0); - } - + } - } + Catch { } A}
Reversemousewheel
This method is also called at initialization time:
1 Public mainform () 2 {3 InitializeComponent (); 4 This . Reversemousewheel (); 5 }
mainform ()
This method modifies the wheel zoom function by directly modifying the Reversemousewheel value in the registry attribute.
C # Modify the registry other data can also refer to this code
AE Development Default Wheel zoom function reverse (C # Modify registry data)