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. How to replace the ScrollBar on a List & Combo Box

How to replace the ScrollBar on a List & Combo Box

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
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.
  • M Offline
    M Offline
    MaTrIX2k2
    wrote on last edited by
    #1

    I want to replace it by one of my own ;P

    G 1 Reply Last reply
    0
    • M MaTrIX2k2

      I want to replace it by one of my own ;P

      G Offline
      G Offline
      Gary R Wheeler
      wrote on last edited by
      #2

      The simplest way to do this is to disable the built-in scrollbar on the list box, and then place your own adjacent to the list box. I'm not sure if even using ownerdraw you could actually replace the built-in scrollbar.


      Software Zen: delete this;

      M 1 Reply Last reply
      0
      • G Gary R Wheeler

        The simplest way to do this is to disable the built-in scrollbar on the list box, and then place your own adjacent to the list box. I'm not sure if even using ownerdraw you could actually replace the built-in scrollbar.


        Software Zen: delete this;

        M Offline
        M Offline
        MaTrIX2k2
        wrote on last edited by
        #3

        I've thought that too, but if i do, i'll have to map the mouse and key events by my own, i only want to replace the classic scroolbar by one of my own, withou mapping the events, is there another way?:confused:

        G 1 Reply Last reply
        0
        • M MaTrIX2k2

          I've thought that too, but if i do, i'll have to map the mouse and key events by my own, i only want to replace the classic scroolbar by one of my own, withou mapping the events, is there another way?:confused:

          G Offline
          G Offline
          Gary R Wheeler
          wrote on last edited by
          #4

          Not that I know of (and I looked hard). I ran into this very problem on an application that used a touch screen. It turns out the builtin scrollbar didn't resize in a way that was appropriate for the touch screen, so I ended up building my own. I could have used the so-called 'flat scrollbars' provided by some versions of Internet Explorer, but they're not a good idea (they're no longer supported under IE6+).


          Software Zen: delete this;

          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