ImageGlass.ImageBox.OnAllowUnfocusedMouseWheelChanged C# (CSharp) Method

OnAllowUnfocusedMouseWheelChanged() protected method

Raises the AllowUnfocusedMouseWheelChanged event.
protected OnAllowUnfocusedMouseWheelChanged ( EventArgs e ) : void
e System.EventArgs The instance containing the event data.
return void
        protected virtual void OnAllowUnfocusedMouseWheelChanged(EventArgs e)
        {
            EventHandler handler;

            if (AllowUnfocusedMouseWheel)
            {
                // TODO: Not doing any reference counting so there's
                // currently no way of disabling the message filter
                // after the first time it has been enabled
                ImageBoxMouseWheelMessageFilter.Active = true;
            }

            handler = AllowUnfocusedMouseWheelChanged;

            if (handler != null)
                handler(this, e);
        }
ImageBox