ComponentFactory.Krypton.Ribbon.ViewRibbonMinimizedManager.MouseMove C# (CSharp) Method

MouseMove() public method

Perform mouse movement handling.
public MouseMove ( MouseEventArgs e, Point rawPt ) : void
e MouseEventArgs A MouseEventArgs that contains the event data.
rawPt Point The actual point provided from the windows message.
return void
        public override void MouseMove(MouseEventArgs e, Point rawPt)
        {
            Debug.Assert(e != null);

            // Validate incoming reference
            if (e == null) throw new ArgumentNullException("e");

            // Only interested if the application window we are inside is active
            if (_active)
            {
                // Only hot track groups if in the correct mode
                if (_minimizedMode == _ribbon.RealMinimizedMode)
                {
                    // Get the view group instance that matches this point
                    ViewDrawRibbonGroup viewGroup = _viewGroups.ViewGroupFromPoint(new Point(e.X, e.Y));

                    // Is there a change in active group?
                    if (viewGroup != _activeGroup)
                    {
                        if (_activeGroup != null)
                        {
                            _activeGroup.Tracking = false;
                            _activeGroup.PerformNeedPaint(false, _activeGroup.ClientRectangle);
                        }

                        _activeGroup = viewGroup;

                        if (_activeGroup != null)
                        {
                            _activeGroup.Tracking = true;
                            _activeGroup.PerformNeedPaint(false, _activeGroup.ClientRectangle);
                        }
                    }
                }
            }

            // Remember to call base class for standard mouse processing
            base.MouseMove(e, rawPt);
        }