Scroll bar question

This is a discussion on Scroll bar question within the Windows Programming forums, part of the Platform Specific Boards category; Hi guys, I'm writing an application, and I have a question about scroll bars. I would like to know how ...

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    19

    Scroll bar question

    Hi guys,
    I'm writing an application, and I have a question about scroll bars. I would like to know how to increase the size of the actual scroll bar, meaning the little box that you drag around to move the screen. I would like to make it longer to indicate the relative amount of screen that is showing. Thanks in advance.

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    goto msdn ;
    search( SetScrollInfo());
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  3. #3
    Just one more wrong move. -KEN-'s Avatar
    Join Date
    Aug 2001
    Posts
    3,230
    Originally posted by Stoned_Coder
    goto msdn ;
    search( SetScrollInfo());
    That code won't work!!! FIX IT!!! IS THAT C OR C++?!?!?!?!

  4. #4
    Registered User
    Join Date
    Nov 2001
    Posts
    19
    Actually, I have already perused said website. There is a member value in the SCROLLINFO structure that I think applies to what I'm trying to do:

    nPage
    Specifies the page size. A scroll bar uses this value to determine the appropriate size of the proportional scroll box.

    I don't know what they mean by page size, though. I thought page size was how much the scroll bar moved when you clicked on the scroll bar away from the little box.

  5. #5
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    Attatched is petzolds scroll demo. The code is reasonably self explanatory apart from hungarian notation. Play with it.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Trying to scroll a message across an LED display
    By souldoutt in forum C Programming
    Replies: 5
    Last Post: 11-27-2008, 09:39 PM
  2. Wm-hscroll
    By bigdan43 in forum C++ Programming
    Replies: 1
    Last Post: 04-20-2005, 09:59 AM
  3. Someone guide me here..
    By xeddiex in forum Windows Programming
    Replies: 3
    Last Post: 04-04-2005, 12:12 AM
  4. Scroll bar structure?
    By Born_2B_Alone in forum Windows Programming
    Replies: 1
    Last Post: 12-08-2004, 08:46 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