2007-04-24 Carlos Alberto Cortez <calberto.cortez@gmail.com>
authorCarlos Alberto Cortez <calberto.cortez@gmail.com>
Tue, 24 Apr 2007 23:41:07 +0000 (23:41 -0000)
committerCarlos Alberto Cortez <calberto.cortez@gmail.com>
Tue, 24 Apr 2007 23:41:07 +0000 (23:41 -0000)
commit9f089c3dafb8b6f1287670a980981e42737b064e
treec9a000d070b59e54a514d0c4c7d3261dea629ce3
parent73d85331034d04a481072e282b7940318788d944
2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>

* ListView.cs: Report Click and DoubleClick events to the parent
from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
from breaking the click count state when using dialog forms (Control
reports the clicks in a similar fashion). In the previous behaviour
the last WM_LBUTTONUP message in a  double click was sent to the
ListView's form, instead of the ListView, which was breaking the click
count for it. Fixes #80387.

svn path=/trunk/mcs/; revision=76230
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs