Microsoft KB Archive/813791

= BUG: Gridlines for list-view control are not drawn correctly using the LVS_EX_GRIDLINES style =

Article ID: 813791

Article Last Modified on 1/6/2005

-

APPLIES TO


 * Microsoft Windows XP Home Edition
 * Microsoft Windows XP Professional

-



SYMPTOMS
When you use Extended List-View Style LVS_EX_GRIDLINES to display gridlines in a list-view control, grid lines may be drawn over the items or may not appear while scrolling contents of the control.



CAUSE
The list-view control incorrectly handles the smooth scrolling feature when scrolling the contents of the control. This only affects the list-view control that is implemented in the Comctl32.dll file version 6.0.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the &quot;Applies to&quot; section.



WORKAROUND
To turn off the smooth scrolling feature of the list-view control and the list box control, follow these steps:
 * 1) In Control Panel, double-click Display.
 * 2) On the Appearance tab, click Effects.
 * 3) Click to clear the Use the following transition effect for menus and tooltips check box.

Applications can use the SPI_SETLISTBOXSMOOTHSCROLLING parameter when calling the SystemParametersInfo function to enable or to disable smooth scrolling in list-view controls and in list box controls.

Keywords: kbbug kblistview kbcomctrls kbcontrol KB813791

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.