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. Vertical scroll bar in a list control

Vertical scroll bar in a list control

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorial
3 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.
  • N Offline
    N Offline
    neha agarwal27
    wrote on last edited by
    #1

    Hi all, I have made a simple dialog box application, in that i have made a list control. In that list control items are being displayed one by one. My problem is as the number of items increases my list control shows a horizontal scroll bar. But i want that instead of horizontal scroll bar a vertical scroll bar should be displayed. How to do it... Thanks in advance

    I H 2 Replies Last reply
    0
    • N neha agarwal27

      Hi all, I have made a simple dialog box application, in that i have made a list control. In that list control items are being displayed one by one. My problem is as the number of items increases my list control shows a horizontal scroll bar. But i want that instead of horizontal scroll bar a vertical scroll bar should be displayed. How to do it... Thanks in advance

      I Offline
      I Offline
      Iain Clarke Warrior Programmer
      wrote on last edited by
      #2

      I'm assuming this is a List View control. Have you tried setting the LVS_ALIGNLEFT style, instead of the LVS_ALIGNTOP style? Just a guess, but not a bad one. Or try using LVM_SETITEMPOSITION and position the items yourself. You'd need to do this after adding each one, and do it for all when the control's size changes. Iain.

      Iain Clarke appears because CPallini still cares.

      1 Reply Last reply
      0
      • N neha agarwal27

        Hi all, I have made a simple dialog box application, in that i have made a list control. In that list control items are being displayed one by one. My problem is as the number of items increases my list control shows a horizontal scroll bar. But i want that instead of horizontal scroll bar a vertical scroll bar should be displayed. How to do it... Thanks in advance

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        What do you need exactly,can you be more specific.

        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