Thread: Custom Scroll Bar

  1. #1
    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
    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
    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, 01:32 PM
  2. Bitmap with a scroll bar
    By SuperNewbie in forum Windows Programming
    Replies: 1
    Last Post: 10-29-2003, 11:36 PM
  3. no horizontal scroll bar?
    By scott27349 in forum C++ Programming
    Replies: 0
    Last Post: 03-16-2002, 10:41 PM
  4. Problem with Scroll Bar
    By Garfield in forum Windows Programming
    Replies: 8
    Last Post: 11-05-2001, 05:34 AM
  5. Problem with Scroll Bar
    By Garfield in forum Windows Programming
    Replies: 3
    Last Post: 11-01-2001, 02:23 PM