Setting the scrollbar's slider height - you'd think it'd be easy enough

This is a discussion on Setting the scrollbar's slider height - you'd think it'd be easy enough within the Windows Programming forums, part of the Platform Specific Boards category; Apologies for the newbie-like question, but even Google yeilds nothing... How would one set the height of the slider of ...

  1. #1
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    1,390

    Setting the scrollbar's slider height - you'd think it'd be easy enough

    Apologies for the newbie-like question, but even Google yeilds nothing...

    How would one set the height of the slider of a scrollbar?
    For example, in my browser window, I see a huge slider bar. As the window's content becomes longer, the slider will get smaller.
    However, in my application, the slider is always as high as it is wide, regardless of the min position and max position assigned to the bar (my content length).

    Thanks,
    Yarin
    I don't see why people think Chuck Norris is so awesome. If he was really as great as they say, he would be over here slamming my head into the keybsk;lah;flksalfksdnlcslcnsldk;acklsd;glfbaskfl

    /* When I wrote this, only God and I understood what I was doing... Now, God only knows */

  2. #2
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    1,390
    Nevermind; I got it.

    Use the nPage member of struct SCROLLINFO, and pass it to SetScrollInfo().
    I don't see why people think Chuck Norris is so awesome. If he was really as great as they say, he would be over here slamming my head into the keybsk;lah;flksalfksdnlcslcnsldk;acklsd;glfbaskfl

    /* When I wrote this, only God and I understood what I was doing... Now, God only knows */

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 05:23 AM
  2. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  3. Height
    By Zewu in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 04-20-2003, 04:27 PM
  4. Ok, Structs, I need help I am not familiar with them
    By incognito in forum C++ Programming
    Replies: 7
    Last Post: 06-29-2002, 09:45 PM
  5. Outputting String arrays in windows
    By Xterria in forum Game Programming
    Replies: 11
    Last Post: 11-13-2001, 06:35 PM

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