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. list view / how do i force the vertical scrollbar?

list view / how do i force the vertical scrollbar?

Scheduled Pinned Locked Moved C / C++ / MFC
c++questiontutorial
4 Posts 2 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.
  • S Offline
    S Offline
    Sebastian Pipping
    wrote on last edited by
    #1

    when my list view control (report mode) has too few items the vertical scrollbar is disappearing. i looked through these MSDN pages List-View Window Styles Extended List-View Styles Window Styles Extended Window Styles but i didn't find a style helping me to make the scrollbar stay. i'm using plain winapi, no MFC, no WTL. does anybody know how to solve this? thanks in advance, sebastian ------------------------------------------- My website: http://www.hartwork.org -- modified at 13:09 Friday 24th February, 2006

    W S 2 Replies Last reply
    0
    • S Sebastian Pipping

      when my list view control (report mode) has too few items the vertical scrollbar is disappearing. i looked through these MSDN pages List-View Window Styles Extended List-View Styles Window Styles Extended Window Styles but i didn't find a style helping me to make the scrollbar stay. i'm using plain winapi, no MFC, no WTL. does anybody know how to solve this? thanks in advance, sebastian ------------------------------------------- My website: http://www.hartwork.org -- modified at 13:09 Friday 24th February, 2006

      W Offline
      W Offline
      Waldermort
      wrote on last edited by
      #2

      I looked into this myself last week and determined that the only way to do it is to set the owner drawn flag and start overriding things, it was too much bother so I gave up. You'd think that with all the extended styles M$ have added they would have given a LVS_EX_DISABLENOSCROLL, like with standard list boxes.

      S 1 Reply Last reply
      0
      • W Waldermort

        I looked into this myself last week and determined that the only way to do it is to set the owner drawn flag and start overriding things, it was too much bother so I gave up. You'd think that with all the extended styles M$ have added they would have given a LVS_EX_DISABLENOSCROLL, like with standard list boxes.

        S Offline
        S Offline
        Sebastian Pipping
        wrote on last edited by
        #3

        SetScrollInfo doesn't seem to help either. even GetScrollInfo fails. please let me know if you find a way to make it work. best regards, sebastian ------------------------------------------- My website: http://www.hartwork.org

        1 Reply Last reply
        0
        • S Sebastian Pipping

          when my list view control (report mode) has too few items the vertical scrollbar is disappearing. i looked through these MSDN pages List-View Window Styles Extended List-View Styles Window Styles Extended Window Styles but i didn't find a style helping me to make the scrollbar stay. i'm using plain winapi, no MFC, no WTL. does anybody know how to solve this? thanks in advance, sebastian ------------------------------------------- My website: http://www.hartwork.org -- modified at 13:09 Friday 24th February, 2006

          S Offline
          S Offline
          Sebastian Pipping
          wrote on last edited by
          #4

          I still don't know how to achieve this. Any help is very appreciated! Thanks in advance, Sebastian

          ------------------------------------------- My website: http://www.hartwork.org

          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