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. Q: how to get a themed scrollbar

Q: how to get a themed scrollbar

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestionlearning
3 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
    Steve S
    wrote on last edited by
    #1

    I have a VC6 app (no manifest resource) which has a window with several children; The main part of the window is covered by a scrolling edit window (but with only a vertical scrollbar). The SB is 'blue' with etched horizontal lines, and is (presumably) done by the edit control non-client stuff as normal (it's a regular edit control). I want to put several windows underneath the edit control, such as tab selection stuff (think Excel workbook), and a horizontal scrollbar under around half the window (again, think Excel). However, when I create the scrollbar, it appears as a 'standard grey/gray' boring old scrollbar (not like the one in the edit window). Is there a relatively simple way I can make it render in a more modern style? I'm presuming themes here, but being a retro kind of guy (hey, I have clients who still run Windows 95 and 98 X| ) I haven't done anything with them yet; any pointers, hints or samples welcomed. Incidentally, does anyone have a link to the 'ThemeExplorer' sample mentioned in MSDN Oct 2001, which looks like it might be useful at some point? (And yes, I am moving to VS2005, slowly. I didn't realise my code was so non-compliant with more recent standards... :omg: Steve S Developer for hire

    N 1 Reply Last reply
    0
    • S Steve S

      I have a VC6 app (no manifest resource) which has a window with several children; The main part of the window is covered by a scrolling edit window (but with only a vertical scrollbar). The SB is 'blue' with etched horizontal lines, and is (presumably) done by the edit control non-client stuff as normal (it's a regular edit control). I want to put several windows underneath the edit control, such as tab selection stuff (think Excel workbook), and a horizontal scrollbar under around half the window (again, think Excel). However, when I create the scrollbar, it appears as a 'standard grey/gray' boring old scrollbar (not like the one in the edit window). Is there a relatively simple way I can make it render in a more modern style? I'm presuming themes here, but being a retro kind of guy (hey, I have clients who still run Windows 95 and 98 X| ) I haven't done anything with them yet; any pointers, hints or samples welcomed. Incidentally, does anyone have a link to the 'ThemeExplorer' sample mentioned in MSDN Oct 2001, which looks like it might be useful at some point? (And yes, I am moving to VS2005, slowly. I didn't realise my code was so non-compliant with more recent standards... :omg: Steve S Developer for hire

      N Offline
      N Offline
      Naveen
      wrote on last edited by
      #2

      Some times the SetWindowTheme() function may help u nave

      S 1 Reply Last reply
      0
      • N Naveen

        Some times the SetWindowTheme() function may help u nave

        S Offline
        S Offline
        Steve S
        wrote on last edited by
        #3

        Um, yes, sometimes it might. I should, however, have checked that my manifest was being correctly compiled into the resources, which, as it turned out, wasn't, because I'd used what I assumed would be a predefined value for the ID, rather than '1'.:sigh: Irritatingly, the standard controls I was using (list view/richedit/tree) all had visual styles, so I didn't spot it straight away.... Steve S Developer for hire

        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