FIX: Multiselect with ListView Causes Lost Mouse Events (149326)
The information in this article applies to:
- Microsoft Visual Basic Control Creation Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q149326 SYMPTOMS
When the MultiSelect property of the ListView control is set to True,
neither the MouseUp or Click event is generated when the ListView control
itself is clicked. The only event generated in this case is the MouseDown
event. This problem occurs only if the area clicked on does not contain a
ListItem object. If a ListItem is clicked, all three events are fired as
expected.
RESOLUTION
The fired MouseDown event can be used instead of the Click event to execute
code when a user clicks the white space of a ListView control. If it is
vital that some action be taken when the mouse button is released, one can
manually trap the WM_LBUTTONUP message sent to the control using a message
trapping OCX or tool. The Message Blaster OCX produced by WareWithAll is a
good example of a control that provides this functionality.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This bug has been fixed in Visual Basic
6.0.
Modification Type: | Minor | Last Reviewed: | 7/15/2004 |
---|
Keywords: | kbbug kbfix KB149326 |
---|
|