How to detect a mouse click on any column of a List View control in Visual C++ (147842)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
- Microsoft Visual C++ .NET (2002)
- Microsoft Visual C++ .NET (2003)
This article was previously published under Q147842 Note Microsoft Visual C++ .NET 2002 and Microsoft Visual C++ .NET 2003 support both the managed code model that is provided by the Microsoft .NET Framework and the unmanaged native Microsoft Windows code model. The information in this article applies only to unmanaged Visual C++ code. SUMMARY By design, a left-mouse click on a
column other than the first column of a List View control when the control is
in report view will not select the first column of that row. This article
presents a way to detect the mouse click, and highlight the first column of the
row where the mouse was clicked. REFERENCES By design, a List View control in a report view will only
highlight the first column of a row.
For more information about how to select an entire row, click the following article number to view the article in the Microsoft Knowledge Base:
131788
OdListVw.exe highlights entire row in a ListView control
Modification Type: | Major | Last Reviewed: | 9/2/2005 |
---|
Keywords: | kbcode kbhowto kbListView kbProgramming KbUIDesign KB147842 kbAudDeveloper |
---|
|