CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2007
    Posts
    13

    CListView Problem

    Hi All

    i have a SDI application with a CListView in report style

    If i have a lot of items in my listview, say 1000+ when scrolling down through the list, by clicking on the down arrow on the VScroll

    sometimes the lines and the text become distorted, i have noticed this sometimes

    when there is a lot of items in a listcontrol as well

    Has anyone any ideas on how to overcome this

    Thanks

    Simon

  2. #2
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,150

    Re: CListView Problem

    Do you have gridlines enabled in your listcontrol?
    Are you running on XP?
    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

  3. #3
    Join Date
    Nov 2007
    Posts
    13

    Re: CListView Problem

    Hi

    Thanks for the reply

    yes i am using Grid Lines

    im declaring it like

    ListView_SetExtendedListViewStyle (m_hWnd, LVS_EX_FULLROWSELECT | LVS_EX_GRIDLINES | LVS_EX_HEADERDRAGDROP);

    and yes, i am using XP

    thanks

    Simon

  4. #4
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,150

    Re: CListView Problem

    Then I also guess that you have "smooth scrolling" enabled in XP. See section 4 "Solving the XP gridlines problem" in http://www.codeproject.com/tips/BoxOTricks.asp
    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

  5. #5
    Join Date
    Nov 2007
    Posts
    13

    Cool Re: CListView Problem

    Excellent, thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured