示例#1
0
        public static void add(Control ctrl, on_wheel_func on_wheel)
        {
            var filter = new wheel_filter(ctrl, on_wheel);

            Application.AddMessageFilter(filter);
            ctrl.Disposed += (s, e) => Application.RemoveMessageFilter(filter);
        }
示例#2
0
 public static void add(Control ctrl, on_wheel_func on_wheel)
 {
     var filter = new wheel_filter(ctrl, on_wheel);
     Application.AddMessageFilter(filter);
     ctrl.Disposed += (s, e) => Application.RemoveMessageFilter(filter);
 }