Custom Scroll Bar

This is a discussion on Custom Scroll Bar within the Windows Programming forums, part of the Platform Specific Boards category; I would like to know how I can make scroll bars custom, because most windows use standard scroll bars and ...

  1. #1
    lyx
    lyx is offline
    Amateur
    Join Date
    Sep 2003
    Posts
    228

    Custom Scroll Bar

    I would like to know how I can make scroll bars custom, because most windows use standard scroll bars and if I subclass the SCROLLBAR control, it probably won't affect the standard ones. So, is there a way I could do that?

  2. #2
    Registered User lobo's Avatar
    Join Date
    Oct 2001
    Posts
    71
    Well, if sub or superclassing does not work for you, you can create your own plain window, draw scrollbar components of your preference and handle mouse msgs incoming to that window, no ?

  3. #3
    lyx
    lyx is offline
    Amateur
    Join Date
    Sep 2003
    Posts
    228
    Well, I wanted to make the standard controls custom because I'm quite lazy and creating scroll bars for each window that needs one is more code. ;p

  4. #4
    Registered User lobo's Avatar
    Join Date
    Oct 2001
    Posts
    71
    If you create custom class/windowproc/whatever for scrollbars with features you want it to have, you can work with it the same way as with std. scrollbars and without any overhead work, no ;p?...?

  5. #5
    lyx
    lyx is offline
    Amateur
    Join Date
    Sep 2003
    Posts
    228
    Well, it is probably the only solution. ^^
    And about the ;p smiley, well, I'm used to use it a lot when making fun of something, in this case my own laziness. ;p

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. beach bar (sims type game)
    By DrKillPatient in forum Game Programming
    Replies: 1
    Last Post: 03-06-2006, 12:32 PM
  2. Bitmap with a scroll bar
    By SuperNewbie in forum Windows Programming
    Replies: 1
    Last Post: 10-29-2003, 10:36 PM
  3. no horizontal scroll bar?
    By scott27349 in forum C++ Programming
    Replies: 0
    Last Post: 03-16-2002, 09:41 PM
  4. Problem with Scroll Bar
    By Garfield in forum Windows Programming
    Replies: 8
    Last Post: 11-05-2001, 04:34 AM
  5. Problem with Scroll Bar
    By Garfield in forum Windows Programming
    Replies: 3
    Last Post: 11-01-2001, 01:23 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21