BrightIdeasSoftware.ObjectListView.HandleEndScroll C# (CSharp) Method

HandleEndScroll() protected method

Handle the EndScroll listview notification
protected HandleEndScroll ( Message &m ) : bool
m Message
return bool
        protected virtual bool HandleEndScroll(ref Message m)
        {
            //System.Diagnostics.Debug.WriteLine("LVN_BEGINSCROLL");

            // There is a bug in ListView under XP that causes the gridlines to be incorrectly scrolled
            // when the left button is clicked to scroll. This is supposedly documented at
            // KB 813791, but I couldn't find it anywhere. You can follow this thread to see the discussion
            // http://www.ureader.com/msg/1484143.aspx

            if (!ObjectListView.IsVistaOrLater && Control.MouseButtons == MouseButtons.Left && this.GridLines) {
                this.Invalidate();
                this.Update();
            }

            return false;
        }
ObjectListView