BUG: The column width of a ListView control is not preserved when you re-create the handle of the control in Visual Basic .NET and in Visual C# .NET (822487)
The information in this article applies to:
- Microsoft Visual Basic .NET (2003)
- Microsoft Visual Basic .NET (2002)
- Microsoft Visual C# .NET (2003)
- Microsoft Visual C# .NET (2002)
SYMPTOMSYou have a Microsoft Windows Form with a ListView control. You add a manifest file (a file with a .manifest
extension) that loads Microsoft Windows Common Controls 6.0 to your
application. When you resize the column in the ListView control and then you re-create the handle of the control at run
time, the column width is not preserved. CAUSEThe ListView control receives the HDN_ENDTRACK header control notification handler after you drag the column
divider. The ListView control then sends the LVM_GETCOLUMNWIDTH message in the WM_NOTIFY message to obtain the updated column width from the parent
window. However, Windows Common Controls 6.0 returns the previous width of the
column. Therefore, the width of the column is not preserved when you re-create
the handle of the ListView control.
STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are
listed at the beginning of this article.
REFERENCESFor more information, visit the following Microsoft
Developer Network (MSDN) Web site:
Modification Type: | Minor | Last Reviewed: | 2/3/2006 |
---|
Keywords: | kbvs2005swept kbvs2005doesnotapply kbvs2002sp1sweep kbCmnCtrls kbListView kbCtrl kbControl kbbug KB822487 kbAudDeveloper |
---|
|