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



The information in this article 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 "Applies to" 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.

Modification Type:MajorLast Reviewed:1/6/2005
Keywords:kbComCtrls kbControl kbListView kbbug KB813791 kbAudDeveloper kbAudITPRO