BUG: Multiselect with ListView Causes Lost Mouse EventsLast reviewed: October 3, 1996Article ID: Q149326 |
The information in this article applies to:
SYMPTOMSWhen 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.
WORKAROUNDThe 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.
STATUSMicrosoft has confirmed this to be an issue in the Microsoft products listed at the beginning of this article. Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce
|
Additional reference words: 4.00 vb4win vb432
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |