2006-06-01 Mike Kestner <mkestner@novell.com>
authorMike Kestner <mkestner@gmail.com>
Fri, 2 Jun 2006 15:16:53 +0000 (15:16 -0000)
committerMike Kestner <mkestner@gmail.com>
Fri, 2 Jun 2006 15:16:53 +0000 (15:16 -0000)
* ScrollBar.cs: remove Capture setting/clearing, as it happens
automatically in the Control.WndProc.

svn path=/trunk/mcs/; revision=61409

mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollBar.cs

index bfa3eb61efe18590f295f531f95531e3989d0250..6e9e307cb918c16f9e65433ada42d3f5a5b42d85 100644 (file)
@@ -1,3 +1,8 @@
+2006-06-01  Mike Kestner  <mkestner@novell.com>
+
+       * ScrollBar.cs: remove Capture setting/clearing, as it happens
+       automatically in the Control.WndProc.
+
 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * FileDialog.cs: fix crash when running SharpChess, which sets the
index 6cd39683d56aa4c41140a42779e57135418b5c07..bbae6315d5b16e77985c3ee7e306033ec7b0912b 100644 (file)
@@ -904,7 +904,6 @@ namespace System.Windows.Forms
 
                        if (firstbutton_state != ButtonState.Inactive && first_arrow_area.Contains (e.X, e.Y)) {
                                SendWMScroll(ScrollBarCommands.SB_LINEUP);
-                               this.Capture = true;
                                firstbutton_state = ButtonState.Pushed;
                                firstbutton_pressed = true;
                                Invalidate (first_arrow_area);
@@ -917,7 +916,6 @@ namespace System.Windows.Forms
 
                        if (secondbutton_state != ButtonState.Inactive && second_arrow_area.Contains (e.X, e.Y)) {
                                SendWMScroll(ScrollBarCommands.SB_LINEDOWN);
-                               this.Capture = true;
                                secondbutton_state = ButtonState.Pushed;
                                secondbutton_pressed = true;
                                Invalidate (second_arrow_area);
@@ -930,7 +928,6 @@ namespace System.Windows.Forms
 
                        if (thumb_size > 0 && thumb_pos.Contains (e.X, e.Y)) {
                                thumb_pressed = true;
-                               this.Capture = true;
                                SendWMScroll(ScrollBarCommands.SB_THUMBTRACK);
                                if (vert) {
                                        thumbclick_offset = e.Y - thumb_pos.Y;
@@ -1005,7 +1002,6 @@ namespace System.Windows.Forms
                                DirtyThumbArea ();
                                thumb_moving = ThumbMoving.None;
                        }
-                       this.Capture = false;
 
                        if (firstbutton_pressed) {
                                firstbutton_state = ButtonState.Normal;