Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CListCtrl such problem under windows XP

CListCtrl such problem under windows XP

Scheduled Pinned Locked Moved C / C++ / MFC
c++wpfcomhelpquestion
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fantasy1215
    wrote on last edited by
    #1

    I'm using CListCtrl under windows xp2(with visual style on) with vc++6 create a CListCtrl using LVS_REPORT style and set it LVS_EX_GRIDLINES, When the listctrl has more than one page AND use manifest to make the program using visual styles, click the scroll bar to page down、page up, then it has problems, see the picture[^]. but when not using manifest to set the visual styles, Listctrl doesn't has such problems. Any idea to solve this problem?

    D R 2 Replies Last reply
    0
    • F fantasy1215

      I'm using CListCtrl under windows xp2(with visual style on) with vc++6 create a CListCtrl using LVS_REPORT style and set it LVS_EX_GRIDLINES, When the listctrl has more than one page AND use manifest to make the program using visual styles, click the scroll bar to page down、page up, then it has problems, see the picture[^]. but when not using manifest to set the visual styles, Listctrl doesn't has such problems. Any idea to solve this problem?

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      What happens if you remove the LVS_EX_GRIDLINES style?

      "Love people and use things, not love things and use people." - Unknown

      "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

      F 1 Reply Last reply
      0
      • D David Crow

        What happens if you remove the LVS_EX_GRIDLINES style?

        "Love people and use things, not love things and use people." - Unknown

        "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

        F Offline
        F Offline
        fantasy1215
        wrote on last edited by
        #3

        If remove LVS_EX_GRIDLINES, it works fine. But I need LVS_EX_GRIDLINES extend style. Can't we resolve this? I saw eMule has such problem also! And when run the MSDN sample about ListCtrl, it has such problem too when using xxx.exe.manifest to enable application visual style. But if don't use xxx.exe.manifest to enable application visual style, even we use LVS_EX_GRIDLINES, it then works fine! It's all about visual styles.

        D 1 Reply Last reply
        0
        • F fantasy1215

          If remove LVS_EX_GRIDLINES, it works fine. But I need LVS_EX_GRIDLINES extend style. Can't we resolve this? I saw eMule has such problem also! And when run the MSDN sample about ListCtrl, it has such problem too when using xxx.exe.manifest to enable application visual style. But if don't use xxx.exe.manifest to enable application visual style, even we use LVS_EX_GRIDLINES, it then works fine! It's all about visual styles.

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          fantasy1215 wrote:

          If remove LVS_EX_GRIDLINES, it works fine.

          Even when styles are in use?

          "Love people and use things, not love things and use people." - Unknown

          "The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch

          1 Reply Last reply
          0
          • F fantasy1215

            I'm using CListCtrl under windows xp2(with visual style on) with vc++6 create a CListCtrl using LVS_REPORT style and set it LVS_EX_GRIDLINES, When the listctrl has more than one page AND use manifest to make the program using visual styles, click the scroll bar to page down、page up, then it has problems, see the picture[^]. but when not using manifest to set the visual styles, Listctrl doesn't has such problems. Any idea to solve this problem?

            R Offline
            R Offline
            Rolf Kristensen
            wrote on last edited by
            #5

            Try to add the extended style LVS_EX_DOUBLEBUFFER. I discovered this solved some grid drawing problems when working on CGridListCtrlEx. Though it introduced this funny drawing issue. P.S. Also check that the dialog containing the CListCtrl has "Clip Children" set to false.

            modified on Saturday, October 25, 2008 4:01 AM

            F 1 Reply Last reply
            0
            • R Rolf Kristensen

              Try to add the extended style LVS_EX_DOUBLEBUFFER. I discovered this solved some grid drawing problems when working on CGridListCtrlEx. Though it introduced this funny drawing issue. P.S. Also check that the dialog containing the CListCtrl has "Clip Children" set to false.

              modified on Saturday, October 25, 2008 4:01 AM

              F Offline
              F Offline
              fantasy1215
              wrote on last edited by
              #6

              Thank you for your reply, I try to Add LVS_EX_DOUBLEBUFFER to the ListCtrl, but the VC6 doesn't know it at all.(And make sure the dialog "Clip Children" set to false) I'm using vc6 under xp sp3, and with flatform sdk for xp sp2[^] installed.(I've download the Windows Server 2003 PSDK February 2003 Edition from MSDN too, but it can't be installed) I've googled, it says define LVS_EX_DOUBLEBUFFER yourself as follow: #define LVS_EX_DOUBLEBUFFER 0x00010000 I did so, and it compiles through, while the flick problem still exists. Wait for your reply!

              R 1 Reply Last reply
              0
              • F fantasy1215

                Thank you for your reply, I try to Add LVS_EX_DOUBLEBUFFER to the ListCtrl, but the VC6 doesn't know it at all.(And make sure the dialog "Clip Children" set to false) I'm using vc6 under xp sp3, and with flatform sdk for xp sp2[^] installed.(I've download the Windows Server 2003 PSDK February 2003 Edition from MSDN too, but it can't be installed) I've googled, it says define LVS_EX_DOUBLEBUFFER yourself as follow: #define LVS_EX_DOUBLEBUFFER 0x00010000 I did so, and it compiles through, while the flick problem still exists. Wait for your reply!

                R Offline
                R Offline
                Rolf Kristensen
                wrote on last edited by
                #7

                The LVS_EX_DOUBLEBUFFER requires that one set _WIN32_WINNT >= 0x501. But if that doesn't help, then I have no other suggestions.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups